
IOS
文章平均质量分 65
missAFeng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
邮箱和手机号码验证
/** * 验证邮箱格式 * * @return 邮箱正确性 */ - (BOOL)isValidEmail { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSPredicate predicateWithFo原创 2015-01-21 11:29:16 · 1225 阅读 · 0 评论 -
UIView (GFExtension)扩展
// // UIView+GFExtension.h // LiveActivity // // Created by company on 14/11/21. // Copyright (c) 2014年 ___GAOFENG___. All rights reserved. // #import /** * UIView扩展,简便获取frame值 */ @interface原创 2015-01-21 11:13:10 · 787 阅读 · 0 评论 -
UILabel 显示多种字体和颜色
NSMutableAttributedString *your_string = [[NSMutableAttributedString alloc] initWithString:@"Today is Wednesday !"]; [your_string addAttribute:NSForegroundColorAttributeName value:[UIColor yel原创 2015-01-21 10:36:22 · 714 阅读 · 0 评论 -
NSObject (PerformBlockAfterDelay) 延时调用函数
// // NSObject+PerformBlockAfterDelay.h // zzjk4ios // // Created by company on 14-4-22. // Copyright (c) 2014年 company. All rights reserved. // #import /** * 延时调用函数 */ @interface NSObject (原创 2015-01-21 11:19:46 · 809 阅读 · 0 评论 -
IOS 获取年月日、星期
#pragma mark - 获取年月日及星期 + (NSString *)stringFromDate { // 添加日期 NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSDateComponents *comps = [[原创 2015-04-23 11:08:41 · 1744 阅读 · 0 评论 -
十六进制颜色转UIColor
#define DEFAULT_VOID_COLOR [UIColor clearColor] + (UIColor *)colorWithHexString:(NSString *)stringToConvert { NSString *cString = [[stringToConvert stringByTrimmingCharactersInSet:[NSCharacterSet原创 2015-04-23 10:59:49 · 427 阅读 · 0 评论 -
Autolayout小结(二)
Autolayout小结(二) 在Autolayout小结(一)中介绍了在Autolayout学习中一些基本的注意点,本文会针对一些布局上常见的问题进行分析。 如何自动适应cell的高度如何在ScrollView中使用Autolayout使用Autolayout做动画Autolayout在IOS6上的坑 1. 如何自动适应cell的高度 在IOS的布局中,计算和适应ce转载 2015-05-12 11:36:11 · 514 阅读 · 0 评论 -
Autolayout使用小结(一)
刘坤的技术博客 BlueBox 所有文章 嗨,我是刘坤,一名来自中国的 IOS 开发者,现就职于杭州阿里,花名‘念纪’,沉淀技术,寻求创意 GitHub RSS 友情链接 Casatwy Taloyumgf&zjの盗梦空间 Autolayout使用小结(一) 最近做项目时,因为iPhone6和iPhone6Plus的兼容,我们启用了Autolayou转载 2015-05-12 11:32:48 · 868 阅读 · 0 评论 -
UITableViewCell 初始化
UITableViewCell 初始化原创 2015-11-21 14:39:57 · 633 阅读 · 0 评论