- 博客(15)
- 收藏
- 关注
原创 滑动bug
滑动scrollView TableView 里放tableView 坑 一下午 for (NSString *url in self.urlRequesetArray) { [self.biggieListArray removeAllObjects]; [self requestBiggieList: url]; } 请求之前移除一次就行了。
2016-09-27 20:50:14 210
原创 不提示任何的卡死 layoutSubView
在有动画时,重写layoutSubView,什么都不提示的卡死,看来是不停的刷新UI导致,记住这个坑。
2016-09-25 19:27:46 356
原创 以前的向上移动动画
// CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath: @”position”]; // anim.duration = 0.5; // anim.fromValue = [NSValue valueWithCGPoint:CGPointMake(self.teamLabel.x, self.tea
2016-09-25 11:45:08 202
原创 Cell点击变灰色
for (UILabel *label in [tableView cellForRowAtIndexPath:indexPath].contentView.subviews) { if ([label isKindOfClass: [UILabel class]]) { label.textColor = COLOR_DA
2016-09-18 10:01:23 325
原创 按钮文字左面
moreBiggieButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;moreBiggieButton.contentEdgeInsets = UIEdgeInsetsMake(0,10, 0, 0);
2016-09-13 10:14:58 168
原创 计算时间
CGSize textMaxSize = CGSizeMake(XMGScreenW - 2 * XMGMarin, MAXFLOAT);_cellHeight += [self.text boundingRectWithSize: textMaxSize options: NSStringDrawingUsesLineFragmentOrigin attributes: @{NSFontAttr
2016-09-11 00:12:31 164
原创 更换证书命令
yangdeMacBook-Pro:~ yangliucd存放位置 /Library/MobileDevice/Provisioning Profiles/搜索yangdeMacBook−Pro:ProvisioningProfilesyangliu cd 存放位置 ~/Library/MobileDevice/Provisioning\ Profiles/ 搜索 yangdeMa
2016-09-09 18:45:05 559
原创 调整颜色导航栏- 祛除导航栏白边
(void)scrollViewDidScroll:(UIScrollView *)scrollView { [self.navigationController.navigationBar setShadowImage:[UIImage new]]; self.navigationController.navigationBar.hidden = NO; [self.navigationC
2016-09-08 21:34:01 2917
原创 添加阴影
//给iamgeview添加阴影 和边框 UIImageView * imgvPhoto = [UIImageView alloc] init]; //添加边框 CALayer * layer = [_imgvPhoto layer]; layer.borderColor = [ [UIColor whiteColor] CGColor]; layer.borderWidth
2016-09-08 19:45:16 140
原创 字符串操作
/——–操作字符串–NSString(静态字符串)——————— NSString *Beijing= @”北京欢迎您”; //字符串的声明 NSString *log=@”北京欢迎您a”; //[NSString stringWithFormat:@”I am ‘%@’”,Beijing]; //字符串格式化 NSString *zhui = [
2016-09-08 10:26:15 166
原创 UIImage改变图片背景色
//颜色替换 - (UIImage*) imageToTransparent:(UIImage*) image { // 分配内存 const int imageWidth = image.size.width; const int imageHeight = image.size.height; size_t bytesPerRow = ima
2016-09-01 14:09:11 1061
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人