摘要: 一、首先列一下公认的资料: 先看到下面的代码你肯定就明白了一些:-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height 阅读全文
posted @ 2018-03-22 14:38 4Dream 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-22 12:52 4Dream 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 在iOS编程中UILabel是一个常用的控件,下面分享一下UILabel的相关属性设置的方法。 很多学习iOS6编程都是从storyboard开始,用到UILabel时是将控件拖到storyboard中生成实现,如果想要在-(void)viewDidLoad中用代码如[_label initWith 阅读全文
posted @ 2018-03-22 12:28 4Dream 阅读(187) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-03-11 15:24 4Dream 阅读(1) 评论(0) 推荐(0) 编辑
摘要: iOS8推出了几个新的“controller”,主要是把类似之前的UIAlertView变成了UIAlertController,这不经意的改变,貌似把我之前理解的“controller”一下子推翻了~但是也无所谓,有新东西不怕,学会使用了就行。接下来会探讨一下这些个新的Controller。- (... 阅读全文
posted @ 2015-12-19 14:16 4Dream 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 一,什么是Protobuf官方文档给出的是:a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data st... 阅读全文
posted @ 2015-10-23 15:06 4Dream 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 三种网络数据传输方式比较(byte stream,protobuf,json)2014-08-27 10:39:04分类:LINUX原文地址:三种网络数据传输方式比较(byte stream,protobuf,json)作者:yuyunliuhen 针对于tinynet进行了三种数据传输方式的测试... 阅读全文
posted @ 2015-10-23 15:00 4Dream 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: NSString *city = @"北京"; NSString *city2 =[city stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]; 阅读全文
posted @ 2015-09-07 19:01 4Dream 阅读(236) 评论(0) 推荐(0) 编辑
摘要: http://msching.github.io/blog/2014/07/07/audio-in-ios/从事音乐相关的app开发也已经有一段时日了,在这过程中app的播放器几经修改我也因此对于iOS下的音频播放实现有了一定的研究。写这个系列的博客目的一方面希望能够抛砖引玉,另一方面也是希望能帮助... 阅读全文
posted @ 2015-08-14 18:08 4Dream 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 先从tabBarController取出导航控制器,再从导航控制器的ViewControllers取出需要传值的视图控制器。如UINavigationController*recentNC = [self.tabBarController.viewControllersobjectAtIndex:1... 阅读全文
posted @ 2015-08-14 11:31 4Dream 阅读(456) 评论(0) 推荐(0) 编辑