摘要:1. 首先在svn上面创建一个文件夹 举例来说,名字为 FSLBootPageVC 同时在该目录下创建 trunk 文件夹 2. 在trunk下面创建文件 FSLBootPageVC.podspec 和文件夹 FSLBootPageVC 该目录的FSLBootPageVC下面是实际要用的文件 FSL
阅读全文
摘要:ColorfulWoodUIBase 1. 目的:该框架致力于提供一些通用的界面设计,用于快速搭建界面,减少界面开发时间 界面开发是iOS开发,或者几乎所有程序开发中重要的一环,对于用户来说,这带来很重要的体验;但是,对于开发者来说,界面开发却是最低级和没有价值的任务。而业务逻辑,程序性能更能体现程
阅读全文
摘要:滚动有三种方式: 1. [self.tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES]; 2. [self.tableView setContentOffset:CGPointMake(0,0) animated:YE
阅读全文
摘要:参考:http://blog.csdn.net/tangxianhai/article/details/51454026 ios动画,现在知道有两种:UIView动画 和 Core Animation核心动画
阅读全文
摘要:http://blog.csdn.net/x1135768777/article/details/7526259
阅读全文
摘要:参考文章:http://www.cnblogs.com/wendingding/p/3775488.html 简单明了,不用再总结了。
阅读全文
摘要:自动布局将视图显示在屏幕上的步骤: 参考自:先进的自动布局工具箱
阅读全文
摘要:1. 设置控件的宽度是父视图的宽度的1/2 在控件上按住ctrl,按住鼠标左键,拖动到父视图,这时出来一个选项,选中aspect 在Multiplier中填上1:2 即可,其它的比例也是这样 2. 设置控件的高度是控件宽度的1/3 在控件上按住ctrl,按住鼠标左键,拖向自身,选中aspect ra
阅读全文
摘要:self.navigationController.navigationBar.userInteractionEnabled = NO;
阅读全文
摘要:UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCustom]; CGRect checkboxRect = CGRectMake(135,150,36,36); [checkbox setFrame:checkboxRect];
阅读全文
摘要:重用机制;-(UITableViewCell *)tableView: (UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath static NSString *cellIdentifier = @"";...
阅读全文
摘要:Distribution 分布:Fill:填充,会根据优先级来压缩或伸长元素Fill Equal:全都相等,并且都填充满Fill Proportionally:按比例填充,根据元素的内容多少的比例填充Equal Centering:根据元素的中心点间的距离分布,默认是不压缩的。但是,如果空间不够,则...
阅读全文
摘要:UIWindow *win = [[UIApplication sharedApplication].windows objectAtIndex:0]; for (UIView* uv in win.rootViewController.view.subviews) { if([...
阅读全文
摘要:方式一:[UIView animateWithDuration:1 animations:^{ //动画的内容 CGRect frame = CGRectMake([UIParam widthScreen]-25, 54, 0, 0); [self setF...
阅读全文
摘要:UITapGestureRecognizer *doubleClick = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(PictureClick:)]; doubleClick.numberOfTaps...
阅读全文
摘要:UIImageView* imageView = [[UIImageView alloc] initWithFrame:self.view.bounds]; imageView.image = [UIImage imageNamed:@"背景灰.png"]; self.vi...
阅读全文
摘要:-(void)creatTabBarView{ NSArray *imgArray=@[]; NSArray *selectImage=@[]; NSArray *names=@[]; for (int i=0; i<names.count; i++) { ...
阅读全文