摘要: A literal array is created by putting squarebrackets around a comma-separated list of elementseg:# ["zero" , "un" , "dos" , "tre" ]a = ['zero' , 'un' , 'dos' , 'tre' ]# 4a.length# 4a.size# "zero"a[0]# ["un" , 阅读全文
posted @ 2014-02-20 17:35 Master HaKu 阅读(235) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want to display an image instead of text as the title of the current view controlleron the navigation controllerSolutionUse the titleView property of the view controller’s navigation item- (void)viewDidLoad { [super viewDidLoad]; /* Create an Image View to replace the Title View */ ... 阅读全文
posted @ 2014-02-20 11:58 Master HaKu 阅读(286) 评论(0) 推荐(0) 编辑
摘要: ProblemYou would like to directly manipulate the array of view controllers associated with aspecific navigation controllerSolutionUse the viewControllers property of the UINavigationController class to access andmodify the array of view controllers associated with a navigation controller- (void) goB 阅读全文
posted @ 2014-02-20 11:46 Master HaKu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: ProblemYou would like to allow your users to move from one view controller to the other witha smooth and built-in animation.SolutionUse an instance of UINavigationController.What it's likeIf you’ve used an iPhone, iPod Touch, or iPad before, chances are that you have alreadyseen a navigation con 阅读全文
posted @ 2014-02-20 10:40 Master HaKu 阅读(259) 评论(0) 推荐(0) 编辑