上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页
摘要: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 2. The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the up 阅读全文
posted @ 2013-11-13 12:02 如来藏 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: 1,uitableview中涉及到排序的问题,查找资料后发现使用UILocalizedIndexedCollation可以很好处理中文和英文系统下中文的排序。而且如果第一个汉字首字母一样那么就会按照第二个开始排序。2,如果tableview的高度不是整个全屏的,比如有导航栏定制等,那么ios7.0下会缩减显示。呈现的是带有圆点的效果。其他系统不会。且无法修改。效果如下: 代码如下:#pragma mark -#pragma mark Table view data source and delegate methods//设置Section的数- (NSInteger)numberOfSect 阅读全文
posted @ 2013-11-08 17:28 如来藏 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 有人问popToViewController的用法 就写了下了 希望能帮到有需要的人[self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:2] animated:YES];或for (UIViewController *temp inself.navigationController.viewControllers) { if ([temp isKindOfClass:[你要跳转到的Controllerclass]]) { ... 阅读全文
posted @ 2013-11-07 17:16 如来藏 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 因为使用时候的类型和初始化的对象类型不匹配造成的,例如- (NSMutableDictionary *)getMenuItems{ NSArray *defaultTmp = [NSArray arrayWithObjects:@"menu_friend_icon@2x.png",@"menu_message_icon@2x.png", @"menu_announcemen_icon@2x.png",@"menu_album_icon@2x.png",@"menu_more_icon@2x.png&quo 阅读全文
posted @ 2013-11-01 10:52 如来藏 阅读(9088) 评论(0) 推荐(0) 编辑
摘要: 在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中可以使用来设置开机动画停留的时间 阅读全文
posted @ 2013-10-31 11:10 如来藏 阅读(1608) 评论(0) 推荐(0) 编辑
摘要: I have been working on an iOS app for some time, all of a sudden I am getting the following crash every time I run the app in the iOS 5.1 Simulator.The App does not use Core Data and I am not sure what brought this about.I have deleted the app from the simulator, done Clean, and a rebuild but nothin 阅读全文
posted @ 2013-10-31 11:06 如来藏 阅读(531) 评论(0) 推荐(0) 编辑
摘要: ios 6模拟器上,点击事件调用出pop窗口,这个窗口新创建了window,在pop窗口消失的函数中使用了makeKeyWindow,这个是将要显示的window放到最前端。发现屏蔽这个方法后可以了。- (void)closeAlert { //stop timer if ([self.alertViewType isEqualToString:@"Info"]) { [self.alertTimer invalidate]; self.alertTimer = nil; } // else// {// LoginManager *temp = [[LoginManager 阅读全文
posted @ 2013-10-31 10:53 如来藏 阅读(282) 评论(0) 推荐(0) 编辑
摘要: ------------添加设备到provisioning------------- 1,登陆https://developer.apple.com/devcenter/ios/index.action图1:2,右侧菜单选择“iOS provisioning portal”(必须开发者账号才能看到这个菜单)图2:3,在device菜单中点击add device,然后输入设备名称(自定义)和设备的UUID(itunes中可以查到),然后submit。图3:4,在provisioning菜单点击要添加设备的provisioning的edit选项。然后选中需要添加的测试设备5,在edit页面中勾选刚 阅读全文
posted @ 2013-10-29 14:59 如来藏 阅读(388) 评论(0) 推荐(0) 编辑
摘要: //移动- (IBAction)translation:(id)sender { CABasicAnimation *traslation = [CABasicAnimation animationWithKeyPath:@"position"]; traslation.toValue = [NSValue valueWithCGPoint:CGPointMake(320,480)]; traslation.duration = 2.0; //traslation.autoreverses = YES; traslation.repeatCount = 1; ... 阅读全文
posted @ 2013-10-29 10:30 如来藏 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 例子:- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{static NSString *CellIndentifier = @"Account"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIndentifier]; //adjust the height for cell CGRect cellFrame = [ 阅读全文
posted @ 2013-10-25 16:33 如来藏 阅读(1352) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页