专注-谆享

----------------木秀于林

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)


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gnicky/article/details/7391003
上一篇控制来电显示的Android
下一篇animation tableview
想对作者说点什么? 我来说一句

C#多线程C#线程及访问杂记

2009年12月18日 1.16MB 下载

concurrent 杂记

2015年09月02日 1.99MB 下载

没有更多推荐了,返回首页

关闭
关闭