![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS Development
Dreamer5
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
NSNotificationCenter消息通信机制介绍(KVO)
作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mytest:) name:@" mytest" object:nil];转载 2014-09-26 15:54:21 · 289 阅读 · 0 评论 -
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 阅读 · 0 评论 -
cell重用机制理解
- (UITableViewCell *)tableView:(UITableView *)table cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [table dequeueReusableCellWithIdentifier:@"FlipsideCellIdentifier"];转载 2014-09-26 16:33:45 · 391 阅读 · 0 评论 -
自定义UITabBar,自定义tabbar中的Button
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];原创 2014-09-26 15:55:26 · 400 阅读 · 0 评论