关闭

iOS杂记

476人阅读 评论(0) 收藏 举报

-(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)


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:843183次
    • 积分:12661
    • 等级:
    • 排名:第1177名
    • 原创:322篇
    • 转载:660篇
    • 译文:30篇
    • 评论:44条
    友情链接
    友情链接 二
    最新评论