摘要: 我知道的实现方法有三种。1、通过image mask来操作,需要添加mask目标图片。2、通过imageview的layer来操作如下代码1 UIImageView * imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"oiuyfdsa.png"]]; 2 imageView.frame = CGRectMake(20.f, 20.f, 100.f, 100.f); 3 imageView.layer.masksToBounds = YES; 4 imageView.layer.corn 阅读全文
posted @ 2013-11-18 14:24 ubersexual 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 可以在AppDelegate内写,也可以自己定义单例来写这个操作。 1 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 2 { 3 // Override point for customization after application launch. 4 5 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selec... 阅读全文
posted @ 2013-11-18 11:21 ubersexual 阅读(349) 评论(0) 推荐(0) 编辑