03 2015 档案

摘要:UIWebView *_myWebView=[[UIWebView alloc]initWithFrame:self.view.frame]; NSURL * url =[[NSURL alloc]initWithString: @"http://www.newsbaidu.com"]; ... 阅读全文
posted @ 2015-03-05 08:32 深山一枯柴 阅读(154) 评论(0) 推荐(0)
摘要:一:想成为单例的三个步骤1,在H文件中导入第三方框架#import “Singleton.h”;2,在H文件中写:#define singleton_interface(className)3.在M文件中写:#define singleton_implementation(className)二,如... 阅读全文
posted @ 2015-03-05 08:30 深山一枯柴 阅读(108) 评论(0) 推荐(0)
摘要:UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型button.frame = CGRectMake(100, 100,90, 90);//button的framebutton.backgroundC... 阅读全文
posted @ 2015-03-04 17:15 深山一枯柴 阅读(225) 评论(0) 推荐(0)
摘要:- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; if ([self.view window] == nil){ self.view = nil;}} 阅读全文
posted @ 2015-03-04 17:12 深山一枯柴 阅读(112) 评论(0) 推荐(0)
摘要:iOS开发中,常常由于需求,而需要圆角的样式.如果4个角都是圆角的,还好说.一行两行代码就可以搞定.就是CAlayer.可是现在我想说下不规则的圆角.目前我还没有找到更好的方法来画圆角.希望有解决方法的朋友看到这篇文章,能交流学习下.1 UIBezierPath *maskPath = [UI... 阅读全文
posted @ 2015-03-04 17:09 深山一枯柴 阅读(127) 评论(0) 推荐(0)
摘要:UIView 所有UI控件都继承于这个UIView,它所拥有的属性必是所有控件都拥有,这些属性都是控件最简单最一般的属性。enable:是否启用;selected:是否被选择;contentVerticalAligement:内容是垂直方向的对齐方式,它是一个枚举,分别有UIControlCont... 阅读全文
posted @ 2015-03-04 17:07 深山一枯柴 阅读(252) 评论(0) 推荐(0)