该文被密码保护。 阅读全文
posted @ 2012-09-12 22:23 不曾拥有 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 定义两个controllerFirstViewController SecondViewController分别为各自定义一个方法 比如 -(void)first;-(void)second;在RootViewController中 定义一个属性@property(nonatomic,retain)UIViewController *currentViewController@synthesize currentViewController;用来存放当前的congtroller的实例 由于我门并不知道 当前是哪一个controller的实例 所以对该属性的定义只能是 通类 UIViewCo.. 阅读全文
posted @ 2012-09-12 22:20 不曾拥有 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 本文出自 “技术成就梦想” 博客,请务必保留此出处http://285746555.blog.51cto.com/2966432/587897NSArray *familyNames = [UIFont familyNames]; NSMutableArray *fontNames = [NSMutableArrayarray]; for (NSString *family in familyNames) { [fontNames addObjectsFromArray:[UIFontfontNamesForFamilyName:family]]; }得到 系统支持的所有字体的名字组成的数组. 阅读全文
posted @ 2012-09-12 21:18 不曾拥有 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 比如 key是 1,2,3,4,5 之类的NSArray*sortedKeys=[[dictallKeys]sortedArrayUsingSelector:@selector(compare:)];NSMutableArray*sortedValues=[NSMutableArrayarray];for(NSString*keyinsortedKeys)[sortedValuesaddObject:[dictobjectForKey:key]]; 阅读全文
posted @ 2012-09-12 19:40 不曾拥有 阅读(1483) 评论(0) 推荐(0) 编辑