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)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值