码迷,mamicode.com
首页 >  
搜索关键字:objectatindex    ( 88个结果
ios 指示器MBProgressHUD 的使用
// 显示指示器     MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:[[UIApplication sharedApplication].windows objectAtIndex:1] animated:YES];     [self.view.window addSubview:HUD];     HUD.labelT...
分类:移动开发   时间:2014-08-11 21:32:22    阅读次数:256
popToViewController的用法(跳转到你想跳转到的那个控制器)
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:?] animated:YES];或for (UIViewController *temp ...
分类:其他好文   时间:2014-07-16 11:56:24    阅读次数:188
下载图片,
-(void)downImage{ AlbumInfo *info = [self.dataArray objectAtIndex:index]; NSString *filePath = [[SandBoxPath pathForCaches]stringByAppendingPathComp.....
分类:其他好文   时间:2014-06-24 10:59:35    阅读次数:231
编写小游戏《贪头蛇》第三篇
点击NEW GAME按钮,进入游戏主场景 代码: 游戏背景 layer = (CCLayer*)this->getChildren()->objectAtIndex(SnakeConstants::LAYER_BACKGROUND); layer->setTouchEnabled(false); //游戏背景 CCSize size = CCDirector::sh...
分类:其他好文   时间:2014-06-13 20:39:00    阅读次数:371
这种垃圾的控制,恶心,
caseUNDOATTENTION: { FriendInfo *info = [dataArray objectAtIndex:0]; [self.managerattentionList:_pageIndexoneRecord:YESotherId:-100]; ...
分类:其他好文   时间:2014-06-13 13:59:53    阅读次数:201
iOS7中Cell高度 Label高度自适应
- (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *str = [_dataArray objectAtIndex:indexPath.row]...
分类:移动开发   时间:2014-06-13 07:20:35    阅读次数:292
误释放对象
问题一:value = [array objectAtIndex:n]; //得到一个数组中的对象[arry removeObjectAtIndex:n]; //卸载那个对象因为value得到了那个对象,但是由于另外一个拥有者release了该对象,所以其实value现在成了摇摆指针(无效数据)问题...
分类:其他好文   时间:2014-05-09 00:02:03    阅读次数:366
让提示界面始终保持在页面的最前端(页面置顶)
UIView *parentView = nil; NSArray* windows = [UIApplication sharedApplication].windows; UIView* window = [windows objectAtIndex:0]; ...
分类:其他好文   时间:2014-04-29 19:09:34    阅读次数:994
88条   上一页 1 ... 7 8 9
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!