上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 73 下一页
摘要: 本文转载至http://blog.jobbole.com/51588/本文由伯乐在线-studentdeng翻译自Chris Eidhof。欢迎加入技术翻译小组。转载请参见文章末尾处的要求。自定义动画iOS 7 对我来说最激动人心的特性就是新的视图控制器切换API(View Controller Transitioning API)。 iOS 7 之前,View Controller之间切换,我需要创建自定义的transitions。 而且这些方法都支持不完整,让人头疼。在transitions中增加交互功能就更难了。在开始这篇文章之前,我要提醒一下:这是一个新的API,我们尽最大努力让他可以 阅读全文
posted @ 2013-11-20 13:39 天牛 阅读(486) 评论(0) 推荐(0)
摘要: 本文转载至http://www.cnblogs.com/qq78292959/archive/2012/07/16/2593651.htmliOS消息推送的工作机制可以简单的用下图来概括:Provider是指某个iPhone软件的Push服务器,APNS是Apple Push Notification Service的缩写,是苹果的服务器。上图可以分为三个阶段:第一阶段:应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找有相应标识的iPhone,并把消息发送到iPhone。第三阶段:iPhone把发来的消息传 阅读全文
posted @ 2013-11-19 09:48 天牛 阅读(257) 评论(0) 推荐(0)
摘要: 本文转载至http://blog.csdn.net/lizhongfu2013/article/details/91661931、UITableView:UITableViewDelegate 新增内容:// Use the estimatedHeigh(估算高度)t methods to quickly calcuate guessed values which will allow for fast load times of the table.// If these methods are implemented, the above -tableView:heightForXXX c 阅读全文
posted @ 2013-11-18 12:18 天牛 阅读(486) 评论(0) 推荐(0)
摘要: 1、UITextView:A ) IOS7新增加的 UITextViewDelegate 方法:- (BOOL)textView:(UITextView*)textView shouldInteractWithURL:(NSURL*)URL inRange:(NSRange)characterRangeNS_AVAILABLE_IOS(7_0);这个代理方法是当用户点击UITextView中的超链接的时候回调次方法:看代码:1、首先viewController.h 文件中声明:2、viewController.m 中添加如下代码: UITextView*textView;- (void)v.. 阅读全文
posted @ 2013-11-18 12:15 天牛 阅读(329) 评论(0) 推荐(0)
摘要: 本文转载至http://blog.csdn.net/lizhongfu2013/article/details/91332811、UINavigationBar: NSDictionary* attrs =@{NSForegroundColorAttributeName: [UIColorblackColor], NSFontAttributeName: [UIFontfontWithName:@"AmericanTypewriter"size:0.0], }; [[UINavigationBarappearance]setTitleTextA... 阅读全文
posted @ 2013-11-18 12:14 天牛 阅读(234) 评论(0) 推荐(0)
摘要: 本文转载至:http://blog.csdn.net/lizhongfu2013/article/details/9124893IOS7在UI方面发生了很大改变,所以感觉有必要重新审视的学习一下(新特性+以前未注意到的特性)。现在开始了:1、UIView:a)view.clearsContextBeforeDrawing=YES When the Clears Graphics Context (clearsContextBeforeDrawing) checkbox is selected, the drawingbuffer is automatically cleared to tran 阅读全文
posted @ 2013-11-18 12:13 天牛 阅读(316) 评论(0) 推荐(0)
摘要: 本文转载至http://blog.csdn.net/linzhiji/article/details/8153797使用AVAudioRecorder录音后使用avplayer播放声音小,尤其是在iphone4以前的手机,比较明显,不知道是录音的时候声音小,还是播放的时候声音小stackoverflow了一下,解决办法如下:1)录音的时候[html]view plaincopy[[AVAudioSessionsharedInstance]setCategory:AVAudioSessionCategoryPlayAndRecorderror:nil];[html]view plaincopy[ 阅读全文
posted @ 2013-11-15 20:02 天牛 阅读(313) 评论(0) 推荐(0)
摘要: 本文转载至http://blog.sina.com.cn/s/blog_693de6100101f1g8.html(2013-04-10 17:25:24)转载▼标签:audiosessionit分类:Xcode/iOS/MacOS一、选择一个CategoryAVAudioSessionCategoryAmbient或kAudioSessionCategory_AmbientSound——用于非以语音为主的应用,使用这个category的应用会随着静音键和屏幕关闭而静音。并且不会中止其它应用播放声音,可以和其它自带应用如iPod,safari等同时播放声音。AVAudioSessionCate 阅读全文
posted @ 2013-11-15 20:00 天牛 阅读(1397) 评论(0) 推荐(0)
摘要: 本文转载至 http://blog.csdn.net/learnios/article/details/8442201分类:功能模块2012-12-27 10:22109人阅读评论(0)收藏举报IOS基础ios基础1.iOS开发中使用[[UIApplication sharedApplication] openURL:] 加载其它应用在iOS开发中,经常需要调用其它App,如拨打电话、发送邮件等。UIApplication:openURL:方法是实现这一目的的最简单方法,该方法一般通过提供的url参数的模式来调用不同的App。通过openURL方法可以调用如下应用:调用浏览器(Safari B 阅读全文
posted @ 2013-11-14 23:26 天牛 阅读(204) 评论(0) 推荐(0)
摘要: 本文转载至http://blog.csdn.net/liulichao20/article/details/8957752分类:ios2013-05-21 22:06321人阅读评论(0)收藏举报//UILabel自动换行,自适应高度 UILabel*label = [[UILabelalloc]initWithFrame:CGRectZero]; [labelsetBackgroundColor:[UIColorclearColor]]; [labelsetFont:[UIFontsystemFontOfSize:14]]; [labelsetLineBreakMode:UILineB... 阅读全文
posted @ 2013-11-14 23:25 天牛 阅读(3061) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 73 下一页