云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > IOS框架文档V1.1

IOS框架文档V1.1

  • 62 次阅读
  • 3 次下载
  • 2025/5/5 19:15:50

_ btnLogin.backgroundColor = RGB(255, 0, 0);

_ btnLogin.titleLabel.font = [UIFont systemFontOfSize:12*RATIO_WIDHT750]; _ btnLogin.tag = 100;

[_btnLogin addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];

10?sean-textfield-create

_tfName = [[UITextField alloc]initWithFrame:CGRectZero]; _tfName.font = [UIFont systemFontOfSize:14*RATIO_WIDHT750]; _tfName.textColor = [UIColor blackColor]; _tfName.placeholder = @\

[self.contentView addSubview: _tfName];

11?sean-cell-delete

返回tableviewcell 中带有侧滑删除

12?sean-cell-init cell初始化及共有方法

13?sean-view-init view初始化及共有方法

14?sean –method-create 返回方法体

15?sean-label-getter-setter - (UILabel*)lbName{ if(!_lbName){

_ lbName = [[UILabel alloc]initWithFrame:CGRectZero]; _ lbName.text = @\

_ lbName.textColor = RGB3(0);

_ lbName.font = [UIFont systemFontOfSize:12*RATIO_WIDHT750]; }

return _ lbName; }

16?sean-imageview-getter-setter 同上格式

17?sean-button-getter-setter 同上

18?sean-textfield-getter-setter

同上

19?sean-view-getter-setter 同上

20?sean-table-getter-setter 同上

21?sean-collview-getter-setter 同上

22?sean-protocol-create 返回代理定义格式

23?sean-table-delegate

24?sean-collview-delegate

25?sean-window-h 返回window head定义

26?sean-window-m

返回window 自定义实现

27、sean-code-mark 返回编码注释分栏

四、开发中常用方法 1、生成二维码

+ (UIImage *)createImageWithString:(NSString *)string withSize:(CGFloat)size;

2、UITextView设置PlaceHolder

-(void)setPlaceholder:(NSString *)placeholdStr placeholdColor:(UIColor *)placeholdColor;

3、UILabel 加载Html代码

@property (nonatomic, assign) BOOL isHtml;//是否是html代码 例 lb.isHtml = TRUE;

4、UILabel 设置中画线 - (void)setCenterLine;

6、 NSDate 转指定格式日期字符串

- (NSString*)formterToStr:(NSString*)style;

7、NSString 把原格式日期转传入的格式

- (NSString*)parseDateStringFrom:(NSString*)fromStyle to:(NSString*)toStyle;

8、NSString把标准yyyy-MM-dd HH:mm:ss 日期转传入的格式 - (NSString*)parseDateString:(NSString*)formatterStyle;

9、NSString时间戳转指定日期格式字符串

+ (NSString *)timeStampConverTime:(NSTimeInterval)timeStamp toStyle:(NSString *)style;

10、NSString HTML5 编码字符串

+ (NSString *)htmlEntityDecode: (NSString *)str;

11、UIImageView圆角效果

UIImageView *imageView = [[UIImageView alloc] initWithRoundingRectImageView]; [imageView setFrame:CGRectMake(130, 80, 30, 30)]; [self.view addSubview:imageView];

UIImageView *imageViewSecond = [[UIImageView alloc]

initWithCornerRadiusAdvance:20.f rectCornerType:UIRectCornerBottomLeft | UIRectCornerTopRight];

[imageViewSecond setFrame:CGRectMake(130, 280, 150, 150)]; [self.view addSubview:imageViewSecond];

UIImageView *imageViewThird = [[UIImageView alloc] initWithFrame:CGRectMake(130, 480, 150, 150)]; [imageViewThird zy_cornerRadiusAdvance:20.f

rectCornerType:UIRectCornerBottomRight | UIRectCornerTopLeft]; [imageViewThird zy_attachBorderWidth:5.f color:[UIColor blackColor]]; [self.view addSubview:imageViewThird];

12、极光推送

第一步、AppDelegate中引入 #import \第二步、调用方法 [self registerRemoteNotification:launchOptions];

13、字典取值均采用JK_开头方法

例:Nsstring *name = [data jk_stringForKey:@” name”];

CGFloat price = [data jk_floatForKey:@” price”];

14、 宽高比 //宽比

#define RATIO_WIDHT750 [UIScreen mainScreen].bounds.size.width/375.0 #define RATIO_HEIGHT750 [UIScreen mainScreen].bounds.size.height/667.0

宽比请采用: RATIO_WIDHT750

高和上间距请采用: RATIO_HEIGHT750

搜索更多关于: IOS框架文档V1.1 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

_ btnLogin.backgroundColor = RGB(255, 0, 0); _ btnLogin.titleLabel.font = [UIFont systemFontOfSize:12*RATIO_WIDHT750]; _ btnLogin.tag = 100; [_btnLogin addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside]; 10?sean-textfield-create _tfName = [[UITextField alloc]initWithFrame:CGRectZero]; _tfName.font =

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com