- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
// No editing style if not editing or the index path is nil.
if (self.editing == NO || !indexPath) return UITableViewCellEditingStyleDelete;
}
Category Archives: iPhone - Page 3
Why “shouldAutorotateToInterfaceOrientation” doesn’t Work
Posted by langui
on March 26, 2011
2 comments
The following is from Apple’s Technical Q&A:
- All child view controllers in your
UITabBarControllerorUINavigationControllerdo not agree on a common orientation set. - Overriding the
-(id)init:or-(id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundlemethod without callingsuper. For the object to be initialized properly, you must call super on anyinitorinitWithNibNamemethod you are overriding for your view controllers.
For more detail please see: