自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 321

转载 cell重用机制理解

- (UITableViewCell *)tableView:(UITableView *)table cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [table dequeueReusableCellWithIdentifier:@"FlipsideCellIdentifier"];

2014-09-26 16:33:45 391

原创 自定义UITabBar,自定义tabbar中的Button

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

2014-09-26 15:55:26 401

原创 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 732

原创 IOS7状态栏

iOS7默认状态栏文字颜色为黑色   修改为白色的方法:(chenyong注意 我的Status bar style 使用的仍是默认值Gray style(default))1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法

2014-09-26 15:54:42 632

转载 NSNotificationCenter消息通信机制介绍(KVO)

作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息               [[NSNotificationCenter defaultCenter]  addObserver:self selector:@selector(mytest:) name:@" mytest" object:nil]; 

2014-09-26 15:54:21 289

原创 TableViewController嵌入NavigationController

NavigationController.h申明NavigationController@property (nonatomic,strong)UINavigationController *navgationController;.m初始化TableViewtableViewController *tableVC = [tableViewC

2014-09-26 15:52:30 512

转载 使用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 802

原创 自定义ZBAR,二维码扫描

转载前请注明出处。效果图:-(void)sysBtn{    NSLog(@"2121");        //重写新的扫描UI    //覆盖在原有ZbarReader的上一层        ZBarReaderViewController *reader = [ZBarReaderViewControl

2014-09-26 15:51:30 541

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除