上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页

2015年7月24日

NSFileManager

摘要: //访问沙盒路径 /* //1.Home主目录(沙盒主目录:里面有Documents,Library,tmp 和一个应用程序) NSLog(@"%@",NSHomeDirectory()); //2.Documents NSString *DocumentsPath=NSSearchPathFor... 阅读全文

posted @ 2015-07-24 11:23 yucaijiang 阅读(206) 评论(0) 推荐(0)

iOS 简单的文件写入

摘要: //访问沙盒路径 /* //1.Home主目录(沙盒主目录:里面有Documents,Library,tmp 和一个应用程序) NSLog(@"%@",NSHomeDirectory()); //2.Documents NSString *DocumentsPath=NSSearchPathFor... 阅读全文

posted @ 2015-07-24 11:21 yucaijiang 阅读(829) 评论(0) 推荐(0)

iOS弹出窗口

摘要: UIAlertView *alterView=[[UIAlertView alloc]initWithTitle:@"警告" message:@"登陆成功" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil]; [... 阅读全文

posted @ 2015-07-24 11:13 yucaijiang 阅读(309) 评论(0) 推荐(0)

iOS block传值和属性传值

摘要: 第一个控制器:-(void)barAction:(UIBarButtonItem*)sender{ NextViewController *next=[[NextViewController alloc]init]; //拿当前页面的值传到后一个页面 next.stringValue=self.rv... 阅读全文

posted @ 2015-07-24 11:11 yucaijiang 阅读(767) 评论(0) 推荐(0)

iOS给所有的TabBar和NavigationBar换颜色

摘要: //一键换肤 [[UINavigationBar appearance]setBarTintColor:[UIColor redColor]];//给所有的NavigationBar换颜色 [[UITabBar appearance]setBarTintColor:[UIColor blueCo... 阅读全文

posted @ 2015-07-24 11:05 yucaijiang 阅读(516) 评论(0) 推荐(0)

iOS获取沙盒路径并写入文件

摘要: .h文件中//你需要的数据集合形式@property(nonatomic,strong)NSMutableArray *groupArray;//数组@property(nonatomic,strong)NSMutableDictionary *allDict;//字典//判断沙盒里面是否有需要的对... 阅读全文

posted @ 2015-07-24 11:03 yucaijiang 阅读(1517) 评论(0) 推荐(0)

uilabel自适应高度

摘要: NSString *str=@"// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to p... 阅读全文

posted @ 2015-07-24 10:58 yucaijiang 阅读(238) 评论(0) 推荐(0)

iOS 快速索引

摘要: //设置快速索引-(NSArray*)sectionIndexTitlesForTableView:(UITableView *)tableView{ return self.headArray;} 阅读全文

posted @ 2015-07-24 10:50 yucaijiang 阅读(193) 评论(0) 推荐(0)

iOS模态视图

摘要: //模态视图(临时弹出使用) GreenViewController *green=[[GreenViewController alloc] init]; green.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal; [self... 阅读全文

posted @ 2015-07-24 10:49 yucaijiang 阅读(233) 评论(0) 推荐(0)

UIPageControl 属性

摘要: //分页控制器UIPageControl self.page=[[UIPageControl alloc]initWithFrame:CGRectMake(50, 100, 200, 50)]; self.page.backgroundColor=[UIColor grayColor]; self.... 阅读全文

posted @ 2015-07-24 10:48 yucaijiang 阅读(234) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页

导航