by Dj Sison | Oct 9, 2013 | iOS Development
In the post “iOS: Defining a fixed or constant width or height constraint programmatically” , we programmatically added constraints that will ensure a fixed with and height for a view. This time, we will programmatically add constraints that will...
by Dj Sison | Oct 7, 2013 | iOS Development
I had a project where we display a UIWebView, where on failure to load, an alert will be displayed informing the user of the error. This is a bit troublesome, since there are lots of UIWebView errors, and we cannot handle all of them immediately. Silently ignoring the...
by Dj Sison | Oct 7, 2013 | iOS Development
In iOS 5 and below, to customize the background color and text color of a UITableView’s header or footer, we needed to create a custom UIView then return it from the following delegate methods: - (UIView *)tableView:(UITableView *)tableView...
by Dj Sison | Oct 4, 2013 | iOS Development
When loading URLs for UIWebView, I usually do it like this: 1. I get the path for my resource, then pass this to other functions. NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"about" ofType:@"html"]; 1 NSString *htmlPath = [[NSBundle mainBundle]...