摘要: NSArray *myImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"1"], [UIImage imageNamed:@"2"], nil]; UIImageView *imageVi... 阅读全文
posted @ 2015-11-04 23:03 HSX 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; UIBu... 阅读全文
posted @ 2015-11-04 09:01 HSX 阅读(104) 评论(0) 推荐(0) 编辑
摘要: height为0, 可以自动计算weith; weith为0, 可以自动计算height, 两者不可以同时为0 NSDictionary *dic = @{NSFontAttributeName: [UIFont systemFontOfSize:17]}; CGRect rect = [joke... 阅读全文
posted @ 2015-11-03 21:28 HSX 阅读(295) 评论(0) 推荐(0) 编辑
摘要: //汉字转拼音 NSMutableString *mutableString = [NSMutableString stringWithString:person.name]; CFStringTransform((CFMutableStringRef)mutableString, NULL,... 阅读全文
posted @ 2015-11-03 20:59 HSX 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"@interface RootViewController (){ CAGradientLayer *gradientLayer; NSTimer *timer;}@end@implementation RootViewControll... 阅读全文
posted @ 2015-11-01 11:00 HSX 阅读(158) 评论(0) 推荐(0) 编辑
摘要: HomeViewController.m#import "HomeViewController.h"#import "TouchViewPro.h"@interface HomeViewController (){ TouchViewPro *touchViewPro;}@end@implemen... 阅读全文
posted @ 2015-10-31 21:14 HSX 阅读(208) 评论(0) 推荐(0) 编辑
摘要: //在RootViewController.h里面遵守协议#import @interface RootViewController : UIViewController@end------------------------------------------------------------/... 阅读全文
posted @ 2015-10-31 20:36 HSX 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; NSStr... 阅读全文
posted @ 2015-10-30 17:26 HSX 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"#import "Person.h"@interface RootViewController ()@property (nonatomic, retain)NSMutableArray *array;@end@implementation... 阅读全文
posted @ 2015-10-29 20:42 HSX 阅读(496) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; self.... 阅读全文
posted @ 2015-10-28 20:59 HSX 阅读(117) 评论(0) 推荐(0) 编辑