摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <meta name="Generator" content="Sublime Text3"> <meta name="Autho 阅读全文
摘要:
UIWebView *_myWebView=[[UIWebView alloc]initWithFrame:self.view.frame]; NSURL * url =[[NSURL alloc]initWithString: @"http://www.newsbaidu.com"]; ... 阅读全文
摘要:
一:想成为单例的三个步骤1,在H文件中导入第三方框架#import “Singleton.h”;2,在H文件中写:#define singleton_interface(className)3.在M文件中写:#define singleton_implementation(className)二,如... 阅读全文
摘要:
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型button.frame = CGRectMake(100, 100,90, 90);//button的framebutton.backgroundC... 阅读全文
摘要:
- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; if ([self.view window] == nil){ self.view = nil;}} 阅读全文
摘要:
iOS开发中,常常由于需求,而需要圆角的样式.如果4个角都是圆角的,还好说.一行两行代码就可以搞定.就是CAlayer.可是现在我想说下不规则的圆角.目前我还没有找到更好的方法来画圆角.希望有解决方法的朋友看到这篇文章,能交流学习下.1 UIBezierPath *maskPath = [UI... 阅读全文
摘要:
UIView 所有UI控件都继承于这个UIView,它所拥有的属性必是所有控件都拥有,这些属性都是控件最简单最一般的属性。enable:是否启用;selected:是否被选择;contentVerticalAligement:内容是垂直方向的对齐方式,它是一个枚举,分别有UIControlCont... 阅读全文