#import int main(int argc, const char * argv[]) { @autoreleasepool { NSArray * arr=@[@"zero",@"one",@"two",@"three",@"for",@"five",@"six",@"seven",...
分类:
其他好文 时间:
2015-08-28 16:58:07
阅读次数:
149
一,NSLayoutConstraint API1,constraintsWithVisualFormat:+ (NSArray *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts ...
分类:
其他好文 时间:
2015-08-28 15:03:55
阅读次数:
106
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSArray *arrSampleName;5 6 - (inst...
分类:
编程语言 时间:
2015-08-28 02:05:21
阅读次数:
233
NSArray *arrayText = @[@"用户名",@"密码",@"确认密码",@"手机号",@"邮箱"]; NSArray *placeholders = @[@"请输入用户名",@"请输入密码",@"请确认密码",@"请输入手机号",@"请输入邮箱"]; NSIn...
分类:
移动开发 时间:
2015-08-27 22:28:18
阅读次数:
179
功能分析
点击对应的按钮后,让汤姆猫展现对应的动画步骤分析
1、搭建UI界面
2、监听按钮点击
3、根据点击的按钮执行对应的动画知识点:
1、UIImageView帧动画的使用
2、UIImage的2种加载方式
3、重复代码的封装抽取
4、文档注释的写法UIImageView帧动画相关属性和方法
@property(nonatomic,copy) NSArray *animatio...
分类:
移动开发 时间:
2015-08-27 21:15:53
阅读次数:
213
通过UIPickerView选择器做的一个类似于密码锁的日期时间表 源码如下: 1 #import 2 3 @interface ViewController : UIViewController 4 @property (strong,nonatomic) NSArray *weeks;//显.....
分类:
其他好文 时间:
2015-08-27 21:10:32
阅读次数:
220
Cocoa提供两个处理文件的通用类:属性列表和对象编码。
1.属性列表
在Cocoa中,有一个类名为属性列表(property list)的对象,通常简写为plist。这些列表包含 Cocoa知道如何操作的一组对象。具体来讲,Cocoa知道如何将它们保存到文件中并进行加载。属性列表类包括NSArray、NSDictionary、NSString、NSNumber、NSDate和NSData,以...
分类:
其他好文 时间:
2015-08-27 13:32:37
阅读次数:
271
NSString *str1=@"I am Lv Chen Hao"; NSArray *arr1=[str1 componentsSeparatedByString:@" "]; NSMutableArray *arr2=[NSMutableArray arrayWithCapacity:0...
分类:
其他好文 时间:
2015-08-27 12:52:54
阅读次数:
178
-(float)fileSizeForDir:(NSString*)path//计算文件夹下文件的总大小{NSFileManager *fileManager = [[NSFileManager alloc] init];float size =0;NSArray* array = [fileMan...
分类:
其他好文 时间:
2015-08-26 15:27:48
阅读次数:
158
/**
* 将阿拉伯数字转换为中文数字
*/
+(NSString *)translationArabicNum:(NSInteger)arabicNum
{
NSString *arabicNumStr = [NSString stringWithFormat:@"%ld",(long)arabicNum];
NSArray *arabicNumeralsArray = @...
分类:
移动开发 时间:
2015-08-26 13:57:50
阅读次数:
208