1.首先UINavigationcontroller 得持有controller例如 RootViewController *rootVC=[[RootViewController alloc]init]; UINavigationController *rootNC=[[UINavigationC...
分类:
其他好文 时间:
2014-12-09 12:12:16
阅读次数:
191
效果图:每隔1s会自动切换图像和小白点。工程图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UIScrollView *imageScrollView; UIPageCo...
分类:
其他好文 时间:
2014-12-08 10:43:48
阅读次数:
192
点击任何处效果图:点击“取消”或“退出”的效果图:工程图:代码:RootViewController.h#import //加入头文件#import "LTBounceSheet.h"//define文件#define color [UIColor colorWithRed:0/255.0 gree...
分类:
其他好文 时间:
2014-12-05 17:10:50
阅读次数:
204
效果图:工程图:此代码中需要引入第三方库STAlertView。代码:RootViewController.h#import //加入头文件#import "STAlertView.h"@interface RootViewController : UIViewController{ STAl...
分类:
其他好文 时间:
2014-12-05 16:55:29
阅读次数:
198
1 UITabBarController的使用步骤初始化UITabBarController设置UIWindow的rootViewController为UITabBarController根据具体情况,通过addChildViewController方法添加对应个数的子控制器2 UITabBarCo...
分类:
其他好文 时间:
2014-12-04 23:13:03
阅读次数:
227
1:UINavigationController的使用步骤初始化UINavigationController设置UIWindow的rootViewController为UINavigationController根据具体情况,通过push方法添加对应个数的子控制器
分类:
其他好文 时间:
2014-12-04 17:19:29
阅读次数:
163
效果图:工程图:此代码需要加入第三方库MBProgressHUD代码:RootViewController.h#import //加入头文件#import "MBProgressHUD.h"@interface RootViewController : UIViewController { M...
分类:
其他好文 时间:
2014-12-01 10:05:30
阅读次数:
120
自从iOS7 导航控制器导航控制条的translucent属性默认为YES 后,在项目中有时候总会遇到这样或那样有关视图控制器的根视图位置引发的问题。比如在导航控制器的RootViewController里的时候,这时你会发现如果你在- (void)viewDidLoad{ NSLog(@"%f"....
分类:
移动开发 时间:
2014-11-29 18:57:35
阅读次数:
339
效果图:工程图:此代码需要加入第三方库GifView.代码:RootViewController.m#import "RootViewController.h"//加入头文件#import "GifView.h"- (void)viewDidLoad{ [super viewDidLoad];...
分类:
其他好文 时间:
2014-11-28 17:50:48
阅读次数:
215
效果图:工程图:此代码要导入第三方库comboBox.代码:RootViewController.h#import //加入头文件#import "ComboBoxView.h"@interface RootViewController : UIViewController{ ComboBox...
分类:
其他好文 时间:
2014-11-28 16:06:13
阅读次数:
144