1 #import "RootViewController.h" 2 3 @interface RootViewController () 4 { 5 UIImageView *imageView; 6 UILabel *scaleRatioLabel;// 显示倍率用的Labe...
分类:
其他好文 时间:
2015-07-14 22:27:17
阅读次数:
125
直接上代码://
// RootViewController.m
//
//#import "RootViewController.h"
#import "DetailViewController.h"/*
TableView 作为一个空表,自身并不确定项目中需要展示的行数,显示的内容以及单元格的样式,所以需要通过代理来获取;
TableView 对应的试图控制器需要遵守 UITa...
分类:
其他好文 时间:
2015-07-14 11:46:56
阅读次数:
110
直接上代码://1、先创建根视图控制器对象。
RootViewController *rootVC = [[RootViewController alloc] init];
//2、创建导航控制器,导航控制器存在的前提是至少有一个被管理的视图控制器对象,所以创建导航控制器对象有一个对应的初始化方法为。 initWithRootViewController:
UINavigat...
分类:
其他好文 时间:
2015-07-14 11:45:15
阅读次数:
148
直接上代码://
// RootViewController.m
//
//#import "RootViewController.h"
#import "CollectionViewCell.h"
@interface RootViewController ()@property (non...
分类:
其他好文 时间:
2015-07-14 11:44:39
阅读次数:
127
直接上代码://
// AppDelegate.m
//
//#import "AppDelegate.h"
#import "RootViewController.h"
#import "FirstViewController.h"
#import "SecnodViewController.h"
#import "ThirdViewController.h"
@interface AppDel...
分类:
其他好文 时间:
2015-07-14 11:44:07
阅读次数:
148
UITabBarController使用详解 UITabBarController是IOS中很常用的一个viewController,例如系统的闹钟程 序,ipod程序等。UITabBarController通常作为整个程序的rootViewController,而且不能添加到别的 contain....
分类:
移动开发 时间:
2015-07-13 15:30:55
阅读次数:
157
创建 UINavigationController(导航控制器)在AppDelegate.m中创建 // 创建一个普通控制器
RootViewController *rootVC = [[RootViewController alloc] init]; // UINavigationController主要用来管理一组控制器(至少有一个),自带 view 但是不使用
UI...
分类:
其他好文 时间:
2015-07-08 22:39:44
阅读次数:
150
1 #import "RootViewController.h" 2 3 #define width [UIScreen mainScreen].bounds.size.width 4 #define heigthY 150 5 #define scrollTime 1 6 7 ...
分类:
其他好文 时间:
2015-07-08 00:22:59
阅读次数:
163
1 #import "RootViewController.h" 2 3 #define width [UIScreen mainScreen].bounds.size.width 4 #define heigthY 150 5 6 @interface RootViewController ...
分类:
其他好文 时间:
2015-07-07 16:09:53
阅读次数:
122
1 #import "RootViewController.h" 2 #import "MJRefresh.h" 3 @interface RootViewController () 4 { 5 UITableView *_tableView ; 6 NSMutable...
分类:
其他好文 时间:
2015-07-06 21:37:38
阅读次数:
126