自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ZhangJ的博客

ZhangJ的编码世界

  • 博客(10)
  • 资源 (16)
  • 收藏
  • 关注

原创 Label根据现实内容自适应大小

- (void)setupLabel { //准备工作 UILabel *textLabel = [[UILabel alloc] init]; textLabel.font = [UIFont systemFontOfSize:16]; NSString *str = @"222222222222222222222222222222222222222222...

2018-03-31 11:32:18 1674

原创 调整Label的行间距

- (void)layoutSubviews { [super layoutSubviews]; NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:self.sharedContext.text];; NSMutableParagrap...

2018-03-31 11:31:35 1091

原创 一个Label实现多种颜色字体大小

NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"Using NSAttributed String"];[str addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMak...

2018-03-31 11:30:39 1806

原创 Label 删除线

NSUInteger length = [self.marketPriceLabel.text length];NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:self.marketPriceLabel.text];[attri addAttribute:NSStriket...

2018-03-31 11:29:56 272

原创 两种回调事件 Block 和 代理

我们在写子view和自定义cell的时候,常常会用到要和conllection去做交互,这时候会需要在collection中实现一些view的button的点击方法就需要用到回调事件,我们常用的回调方法一般都是两种Block和代理-DelegateBlock:@property (nonatomic, copy)void(^selectFlightConditionBlock)();// 在b...

2018-03-31 11:27:02 303

原创 UIButton 左文字右图 上图下文字 富文本

实现左文字右图片[priceBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, -priceBtn.imageView.size.width, 0, priceBtn.imageView.size.width)];[priceBtn setImageEdgeInsets:UIEdgeInsetsMake(0, priceBtn.titleLabel.bounds...

2018-03-31 11:15:25 1537

原创 获取当前所有字体,查看是否有UI要求设置的字体

UIFont *font = [UIFont systemFontOfSize:[UIFont systemFontSize]]; NSLog(@"当前字体。。。 %@",font); NSMutableArray *familyNameArray = [[NSMutableArray alloc] init]; NSArr...

2018-03-31 11:02:03 270

原创 修改navc的高度

#import "UINavigationBar+MyNav.h"@implementation UINavigationBar (MyNav)- (CGSize)sizeThatFits:(CGSize)size { CGSize newSize = CGSizeMake(ScreenWidth, 50); return newSize;}@end方法是可行的 但...

2018-03-31 10:57:48 180

原创 去掉tableView底部留白

有时候tableview创建完成之后滑到最底部会多出一块留白看网上的一些说用_tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];或者是去修改fooerView的高度 都没有奏效 之后看到一句self.edgesForExtendedLayout = NO;直接去掉了,就是这么神奇...

2018-03-31 10:55:54 2230

原创 DZNEmptyDataSet空白Tableview背景的使用

DZNEmptyDataSet 简单的来说就是用来管理我们tableview数据源为空的时候需要展示什么的一个很强大的控件,废话不多说先上效果图:首先你要设置一下代理:_tableView.emptyDataSetSource = self;_tableView.emptyDataSetDelegate = self;记得要服从协议 <DZNEmptyDataSetSource, DZNE...

2018-03-31 10:43:14 542

iOS16.4真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

iOS16.1真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

iOS16.0真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

iOS15.5真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

iOS15.4真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

ios 15.2真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

ios 15.0真机调试包

安装路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2024-06-25

14.6真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-06-09

iOS14.5真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-06-09

iOS13.0真机调试.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.1真机调试.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.2真机调试.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.3真机调试.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.4真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.5真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS13.7真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS14.4真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS14.2真机调试包.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

iOS14.1真机调试.zip

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2021-04-13

14.0真机调试包 安装路径:/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De

14.0真机调试包 安装路径:/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De

2020-08-14

13.6真机调试包 安装路径:/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2020-08-14

12.3真机包.zip

iOS12.3真机调试包 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 前往->前往文件夹 将解压好的文件夹拖进去

2019-06-06

xcode11.4支持文件

xcode11.4支持文件,点击前往->前往文件夹->/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 解压之后添加进去

2018-08-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除