UITextField->UIControl->UIView
常用属性
1.图片对象转化为颜色对象
textField.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@”DOVE 1”]];
2.borderStyle 边框样式
textField.borderStyle = UITextBor...
分类:
移动开发 时间:
2016-05-07 08:15:18
阅读次数:
193
简述:Cocoa框架中的NSPredicate用于查询,原理和用法都类似于SQL中的where,作用相当于数据库的过滤取。 定义(最常用到的方法): 1 NSPredicate *ca = [NSPredicate predicateWithFormat:(NSString *), ...]; (1 ...
分类:
移动开发 时间:
2016-05-06 10:46:57
阅读次数:
261
1.文顶顶博客 http://www.cnblogs.com/wendingding/ 2.唐巧的博客: http://blog.devtang.com/ 唐巧总结的40个国人iOS技术博客 博客地址 更新地址 https://github.com/tangqiaoboy/iOSBlogCN iOS ...
分类:
移动开发 时间:
2016-05-04 10:29:48
阅读次数:
226
使用贝塞尔曲线, 新建了一个类:Corner .h .m ...
分类:
移动开发 时间:
2016-05-02 14:19:18
阅读次数:
172
计算 NSMutableAttributedString 高度,必须要有两个属性 ...
分类:
移动开发 时间:
2016-05-02 14:18:58
阅读次数:
586
A table view controller, like many objects, has more than one init method. There is: ? initWithCoder, for view controllers that are automatically load ...
分类:
移动开发 时间:
2016-05-01 09:48:51
阅读次数:
259
IOS保存文件的其中一种形式是NSKeyedArchiver、NSKeyedUnarchiver归档: 以下内容以一个to-do lists软件为例,ChecklistItem为一个项目(数据模型),包含一个字符串text和一个BOOL标记checked,items是视图控制器的NSMutableA ...
分类:
移动开发 时间:
2016-04-30 23:49:07
阅读次数:
348
http://blog.csdn.net/totogo2010/article/details/7681879 1、UINavigationController导航控制器如何使用 UINavigationController可以翻译为导航控制器,在iOS里经常用到。 我们看看它的如何使用: 下面的图 ...
分类:
移动开发 时间:
2016-04-30 15:29:49
阅读次数:
197
In review, these are the steps for setting up the delegate pattern between two objects, where object A is the delegate for object B and object B will ...
分类:
移动开发 时间:
2016-04-29 22:09:01
阅读次数:
267