iOS杂记

-(BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation{

   return NO;

}

通过以上设置,splitview master detail的 自动隐藏就 失效了,that's what i expected偷笑

anyway to adjust the width of master and detail, although there is size setting, and options like master/detail/fullIpad etc,seem not be in effect.


在 目前的 iOS5时代,可以通过 storyboard快速地操作,anyway you use,you should assign them using the viewControllers property. And, the split view controller does not provide any inherent support for managing两个view之间的 交流 ,一般而言,两种使用情形

Simple master-detail interface, as the master list in table view never changes....

A complex application in which the master and detail views may change. either you can replace the views inside splitviewcontroller.

in such case, there is separate controller file for split view.


一个相对复杂的 UI是否要使用root viewcontroller呢?


改变。。。

 UIBarButtonItem *refreshButton=[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refreshObjects:)]; //关联到一个操作,按下按钮后执行。。。

    self.navigationItem.rightBarButtonItem = refreshButton;



    //UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(insertNewObject:)];

    //self.navigationItem.rightBarButtonItem = addButton;


NSLog(@"dept request url: %@",urlString);


//关于连接与超时问题等。。。

  [request setCachePolicy:NSURLRequestUseProtocolCachePolicy];

    [request setTimeoutInterval:120.0f];

//

scrolllenabled/scrollstotop/bounces--(may cause revealing the scroll view's background color)


你可能感兴趣的:(iOS杂记)