- 博客(9)
- 收藏
- 关注
转载 IOS Table中Cell的重用reuse机制分析
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = [NSString stringWithFormat:@"Cell"]; UITableViewCell
2014-09-26 16:38:53
351
转载 cell重用机制理解
- (UITableViewCell *)tableView:(UITableView *)table cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [table dequeueReusableCellWithIdentifier:@"FlipsideCellIdentifier"];
2014-09-26 16:33:45
428
原创 自定义UITabBar,自定义tabbar中的Button
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
2014-09-26 15:55:26
431
原创 UITableView中点击不同Cell跳转到不同的View
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row % 2 == 0) { ViewControllerOne *oneController = [[self storyboard]instantiateViewControlle
2014-09-26 15:55:24
771
原创 IOS7状态栏
iOS7默认状态栏文字颜色为黑色 修改为白色的方法:(chenyong注意 我的Status bar style 使用的仍是默认值Gray style(default))1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法
2014-09-26 15:54:42
668
转载 NSNotificationCenter消息通信机制介绍(KVO)
作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mytest:) name:@" mytest" object:nil];
2014-09-26 15:54:21
316
原创 TableViewController嵌入NavigationController
NavigationController.h申明NavigationController@property (nonatomic,strong)UINavigationController *navgationController;.m初始化TableViewtableViewController *tableVC = [tableViewC
2014-09-26 15:52:30
540
转载 使用ZBar来读取条形码和二维码的方法
1.使用ZBar项目。下载地址是: http://zbar.sourceforge.net/iphone/index.html2.新建一个项目。3.导入 ZBar的sdk。把ZBar SDK的目录拉入项目,然后选中copy选项4.在项目文件的target中加入 以下framework5.在appDelegate文件中加入标记部分的代码- (B
2014-09-26 15:52:00
869
原创 自定义ZBAR,二维码扫描
转载前请注明出处。效果图:-(void)sysBtn{ NSLog(@"2121"); //重写新的扫描UI //覆盖在原有ZbarReader的上一层 ZBarReaderViewController *reader = [ZBarReaderViewControl
2014-09-26 15:51:30
578
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人