ios - Change the font of a UIBarButtonItem

To be precise, this can be done as below [buttonItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWithName:@"Helvetica-Bold" size:26.0], NSFontAttributeName,... Read More

ios - How do I get the day of the week with Foundation?

NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setDateFormat:@"EEEE"]; NSLog(@"%@", [dateFormatter stringFromDate:[NSDate date]]); outputs current day... Read More

iphone - Removing image from UIImageView

Setting the UIImageView as: myImageView.image = nil is the correct way to clear an UIImageView. Are you loading the image when your calling function returns? Is your UIImageView being declared, and/o... Read More

iphone - UITableView , Scroll to bottom on reload?

Use: NSIndexPath* ipath = [NSIndexPath indexPathForRow: cells_count-1 inSection: sections_count-1]; [tableView scrollToRowAtIndexPath: ipath atScrollPosition: UITableViewScrollPositionTop animated: Y... Read More

xcode - GDB Vs LLDB debuggers

LLDB is part of the LLVM suite of tools that Apple is moving to, including Clang. There are tons of improved features, including improved performance. There's a quick intro for GDB users here: http:/... Read More

ios - How do I wrap text in a UITableViewCell without a custom cell

Here is a simpler way, and it works for me: Inside your cellForRowAtIndexPath: function. The first time you create your cell: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Cell... Read More

ios - What is the content compression resistance and content hugging of a UIView?

Taken from's excellent Advanced Auto Layout Toolbox article: Intrinsic Content Size The intrinsic content size is the size a view prefers to have for a specific content it displays. For exam... Read More

cocoa touch - How to zoom in/out an UIImage object when user pinches screen?

As others described, the easiest solution is to put your UIImageView into a UIScrollView. I did this in the Interface Builder .xib file. In viewDidLoad, set the following variables. Set your controll... Read More

ios - UITableView row animation duration and completion callback

Just came across this. Here's how to do it: Objective-C [CATransaction begin]; [tableView beginUpdates]; [CATransaction setCompletionBlock: ^{ // Code to be executed upon completion }]; [tableVie... Read More

ios - Hide dots from UIPageViewController

The page control is only displayed if the datasource implements these methods: presentationCountForPageViewController: presentationIndexForPageViewController: Simply remove your implementation of the... Read More