会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
深山一枯柴
博客园
首页
新随笔
联系
订阅
管理
2018年4月12日
利用原生JS事件委托实现星星评分效果
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <meta name="Generator" content="Sublime Text3"> <meta name="Autho
阅读全文
posted @ 2018-04-12 23:09 深山一枯柴
阅读(193)
评论(0)
推荐(0)
2015年3月5日
请求网址
摘要: UIWebView *_myWebView=[[UIWebView alloc]initWithFrame:self.view.frame]; NSURL * url =[[NSURL alloc]initWithString: @"http://www.newsbaidu.com"]; ...
阅读全文
posted @ 2015-03-05 08:32 深山一枯柴
阅读(160)
评论(0)
推荐(0)
1.30总结
摘要: 一:想成为单例的三个步骤1,在H文件中导入第三方框架#import “Singleton.h”;2,在H文件中写:#define singleton_interface(className)3.在M文件中写:#define singleton_implementation(className)二,如...
阅读全文
posted @ 2015-03-05 08:30 深山一枯柴
阅读(118)
评论(0)
推荐(0)
2015年3月4日
button的图文设置
摘要: UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型button.frame = CGRectMake(100, 100,90, 90);//button的framebutton.backgroundC...
阅读全文
posted @ 2015-03-04 17:15 深山一枯柴
阅读(230)
评论(0)
推荐(0)
注意内存!!!
摘要: - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; if ([self.view window] == nil){ self.view = nil;}}
阅读全文
posted @ 2015-03-04 17:12 深山一枯柴
阅读(118)
评论(0)
推荐(0)
增加view的圆角笔记
摘要: iOS开发中,常常由于需求,而需要圆角的样式.如果4个角都是圆角的,还好说.一行两行代码就可以搞定.就是CAlayer.可是现在我想说下不规则的圆角.目前我还没有找到更好的方法来画圆角.希望有解决方法的朋友看到这篇文章,能交流学习下.1 UIBezierPath *maskPath = [UI...
阅读全文
posted @ 2015-03-04 17:09 深山一枯柴
阅读(133)
评论(0)
推荐(0)
常用控件的用法笔记
摘要: UIView 所有UI控件都继承于这个UIView,它所拥有的属性必是所有控件都拥有,这些属性都是控件最简单最一般的属性。enable:是否启用;selected:是否被选择;contentVerticalAligement:内容是垂直方向的对齐方式,它是一个枚举,分别有UIControlCont...
阅读全文
posted @ 2015-03-04 17:07 深山一枯柴
阅读(260)
评论(0)
推荐(0)
公告