Many a times, we need the UINavigation bar title to have more than one line, we can do this easily by customizing the titleView of the UINavigationItem. The following method would help you get started: – (void)customNavBarTitle: (NSString *)titleStr { UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(([self.title length] < 10 ? UITextAlignmentCenter : UITextAlignmentLeft), 0, 480,44)]; [...]
Archive for category Code Uncode
Hello all future android rock-stars. Beginning today droolJunkie is going to have a weekly post where we together will be learning how to develop on Android. Week 1: Setting up the tools of the trade Google provides very powerful tools to develop on the Android platform. They not only have command line tools but also [...]
With the latest announcement of iPad, what came along is the iPhone’s new SDK 3.2. Other than featuring iPad only split views and pop overs shown extensively during the Steve’s presentation, there are many more elements which look really interesting and would be very worthy for business and student oriented apps. I am listing a [...]
There are several instances when we need to search for specific type of text in a string or document. For example, searching for a URL in a HTML file, confirming e-mail address in a web form field and so on. The easiest way to get around this is by using an open source library called: [...]
At times, while running through your app, you might come across this warning on console: MyApp(2121,0xb0185000) malloc: *** error for object 0×1068310: double free *** set a breakpoint in malloc_error_break to debug Even though you might feel that its not affecting your app, but its still annoying, and might cause some memory related issues as [...]
