摘要: #import <QuartzCore/QuartzCore.h>//设置圆角边框retweetedView.layer.cornerRadius = 8;retweetedView.layer.masksToBounds = YES;//设置边框及边框颜色retweetedView.layer.borderWidth = 2;retweetedView.layer.borderColor =[ [UIColor grayColor] CGColor]; 阅读全文
posted @ 2012-10-15 10:44 FoxBabe 阅读(3416) 评论(2) 推荐(0) 编辑
摘要: 升级xcode4.5 iOS 6.0后以前的横屏项目 变为了竖屏,以下为解决办法:在AppDelegate 的初始化方法- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中将[window addSubview: viewController.view];替换为下面代码: if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0){ // w... 阅读全文
posted @ 2012-10-15 09:59 FoxBabe 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cocoachina.com/macdev/objc/2012/0613/4355.html何时使用self.在网上搜索或者论坛里的回复大多都是简简单单的说这与objc的存取方法有关,如何与存取方式有关究竟他们之间的是什么样的关系就很少有同学回答了。下面以代码来说明问题:创建一个Student类,继承NSObject类,代码:#import <Foundation/Foundation.h>@ interface Student : NSObject{ NSString *_idd; NSString *_name;}@property (nonat 阅读全文
posted @ 2012-10-15 08:48 FoxBabe 阅读(671) 评论(0) 推荐(0) 编辑