- 博客(10)
- 收藏
- 关注
转载 iOS 用storyboard写项目添加引导页
在创建项目的时候默认的是用storyboard的,但是有时我们需要添加引导页,方法如下在Applegate.m文件中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
2016-08-30 17:04:57 1358
原创 iOS 在一个UILabel里面字体大小不一样
NSMutableAttributedString * noteStr = [[NSMutableAttributedStringalloc]initWithString:[NSStringstringWithFormat:@"¥%@",哈哈哈哈哈哈哈]]; NSRange redRangeTwo =NSMakeRange([[noteStr string]
2016-08-29 17:54:12 5980
原创 iOS 在一个UILabel上显示不同颜色
self.addressLabel = [[UILabelalloc]initWithFrame:CGRectZero]; self.addressLabel.textColor = [UIColorblackColor]; self.addressLabel.font = [UIFontsystemFontOfSize:15];
2016-08-29 14:56:46 1961
转载 iOS tableview 滑动删除
-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ return UITableViewCellEditingStyleDelete;}//先要设Cell可编辑
2016-08-24 16:49:32 546
原创 iOS NSString 加""号(双引号)
NSString * str1 = [NSStringstringWithFormat:@"\"%@\"",123456];NSString * str2 = [NSString stringWithFormat:@"%@",123456];NSLog(@"------%@------%@",str1,str2);
2016-08-23 11:19:52 8793
转载 iOS 删除UITableView 行的两种方法
删除UITableView 行的两种方法 (2012-04-12 07:08:58)转载▼标签: 杂谈分类: IOS大家都知道,删除行时table会调用其Data Source方法:- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITa
2016-08-23 09:24:58 5528
转载 iOS UITableView中关于cell里的按钮被点击时如何确定是哪一个section
iOS UITableView中关于cell里的按钮被点击时如何确定是哪一个section iOS Bear 2年前 (2014-11-06) 52921浏览 3评论在section=10;row=1;的UITableView中,每一个cell都带有一个按钮,例如如下的图片一样每一个cell中都有一个“进入店铺的按钮”,但是如果我点击相应的cell要进入对应的店铺如何
2016-08-23 09:23:24 1044
原创 iOS tableView段头不能移出屏幕的问题
#pragma mark - 段头不能移出屏幕的问题-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ CGFloat sectionHeaderHeight =50; if (scrollView.contentOffset.y contentOffset.y>0) {
2016-08-22 16:53:00 417
原创 iOS UITableView 分割线的缩进
// 设置颜色 self.tableView.separatorColor = [UIColor grayColor];// 设置间距,这里表示separator离左边和右边均10像素 self.tableView.separatorInset =UIEdgeInsetsMake(0,10,0, 10);// 设置分割线的样式 sel
2016-08-22 11:29:30 700
转载 CocoaPods解决Unable to add a source with url
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`. 是由于我装了多个Xcode导致路径变了,解决
2016-08-08 14:44:34 1255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人