11 2015 档案
UIToolbar
摘要:- (void)viewDidLoad { [super viewDidLoad]; [self AddToolBars];}-(void)AddToolBars{ UIToolbar *toolBarTop=[[UIToolbar alloc]initWithFrame:... 阅读全文
posted @ 2015-11-18 21:01 StanleyZhang 阅读(240) 评论(0) 推荐(0)
IOS UITabBarViewController 和UINavigationController 结合使用
摘要:在AppDelegate.m didFinishLaunchingWithOptionsUITabBarViewController *tabView=[[UITabBarViewController alloc] init];//Tab 1ViewController1 *VC1=[[ViewCo... 阅读全文
posted @ 2015-11-18 16:29 StanleyZhang 阅读(449) 评论(0) 推荐(0)
NavigationBar
摘要:模态View显示NavigationBarNavigationBarViewController *navigationBar= [[NavigationBarViewController alloc]init]; UINavigationController *nav=[[UINavigat... 阅读全文
posted @ 2015-11-09 23:21 StanleyZhang 阅读(258) 评论(0) 推荐(0)
iOS页面间传值的方式(Delegate/NSNotification/Block/NSUserDefault/单例)
摘要:iOS页面间传值的方式(NSUserDefault/Delegate/NSNotification/Block/单例)实现了以下iOS页面间传值:1.委托delegate方式;2.通知notification方式;3.block方式;4.UserDefault或者文件方式;5.单例模式方式;6.通过... 阅读全文
posted @ 2015-11-03 22:49 StanleyZhang 阅读(182) 评论(0) 推荐(0)
IOS dismissViewControllerAnimated 传值
摘要:1.新建PassValueDelegate.h@protocolPassValueDelegate-(void)passValue:(NSString*)value; @end2.@interface AViewController : UIViewController-(void)passValu... 阅读全文
posted @ 2015-11-03 22:41 StanleyZhang 阅读(1189) 评论(0) 推荐(0)
IOS 视图跳转的总结
摘要:1、[self.view addSubView:view];和[self.window addSubView:view];需要注意,此方法只是把页面(view)加在当前页面(view)上,控制器(viewController)还是原来那个控制器。此时再用[self.navigationColler ... 阅读全文
posted @ 2015-11-03 22:30 StanleyZhang 阅读(371) 评论(0) 推荐(0)
IOS 弹出模态View presentViewController
摘要:UIscrollViewController *scrollView=[[UIscrollViewController alloc ]init]; [self presentViewController:scrollView animated:YES completion:nil];http... 阅读全文
posted @ 2015-11-03 22:21 StanleyZhang 阅读(575) 评论(0) 推荐(0)
IOS 开发didFinishLaunchingWithOptions 设置启动View
摘要:1.单Viewself.window= [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor=[UIColor grayColor]; IOS01B... 阅读全文
posted @ 2015-11-03 16:18 StanleyZhang 阅读(3533) 评论(0) 推荐(0)