随笔分类 -  导航栏

UINavigationController
摘要:1,创建并使用一个UINavigationControllerUINavigationController *aNav = [[UINavigationController alloc] init];然后添加一个视图进去,否则导航栏也没有意义的UIViewController *aView = [[UIView alloc] initWithNibName: (*xib文件名*)];[aNav pushViewController:aView animated:NO];//导航栏的第一个视图不要动画化2,设置导航栏的左右按钮:我说过,设置导航栏的按钮并不是去设置导航栏本身,而是当时被导航的视图 阅读全文
posted @ 2012-05-22 00:02 chivas 阅读(2219) 评论(0) 推荐(0)