摘要:
从一个视图控制器切换到另一个视图控制器的几种方式1,模态(modal)画面的显示方法:例如iphone通讯录管理程序中,追加新的通讯纪录时,就是使用这种模态画面例:点击一个按钮,进入另一个界面- (void)goForward{ ModalViewController * modalView = [[ModalViewControlleralloc]init]; modalView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; // [self presentModalViewController:modalVi... 阅读全文
摘要:
1、创建空iOS项目,名称为UINavigationItem Test:2、其次,要使得程序运行时能够显示Navigation Bar:2.1 单击AppDelegate.h,向其中添加属性:@property (strong, nonatomic) UINavigationController *navController;2.2 打开AppDelegate.m,在@synthesize viewController = _viewController;之后添加代码:@synthesize navController; #pragma mark - #pragma mark Applicat 阅读全文
摘要:
UITableView有一个强大的编辑模式(editing mode),在编辑模式中可实现删除,插入,多选,排序等功能。使用的方法多很简单。以下介绍删除和排序功能:首先查看SDK提供的API:// Individual rows can opt out of having the -editing property set for them. If not implemented, all rows are assumed to be editable.- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSInd 阅读全文