- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 UITextField遵守的协议
UITextField控件遵守UITextInput协议,UITextInput协议本身继承于UIKeyInput协议,这个协议只有3个方法,- (BOOL)hasText;- (void)insertText:(NSString *)text;- (void)deleteBackward;自定义控件的时候要用到,UIkeyInput协议本身又继承于UITextInputTra
2015-03-25 16:51:27
530
转载 NSObject +load and +initialize
The load messageThe runtime sends the load message to each class object, very soon after the class object is loaded in the process's address space. For classes that are part of the program's exe
2015-03-22 18:32:14
548
原创 我理解的UIWindow
因为要用UIwindow实现一个功能,所以最近了解了一下这个类,这篇文章主要记录一下我遇到的问题和我的想法。UIWindow虽然继承自UIView,但是一个与UIView有显著不同的地方就是,UIWindow 的实例不需要作为任何子 view 加入到任何一个 view hierarchy 中,你一旦像这样[[UIWindow alloc] init] 生成一个对象,它就自动被加入到[UIA
2015-01-27 12:34:06
859
转载 WORKING WITH CUSTOM CONTAINER VIEW CONTROLLERS
原文地址:http://www.thinkandbuild.it/working-with-custom-container-view-controllers/Hey Devs!It has been a while since my last article. A lot of things happened in the meanwhile:I changed my nickn
2015-01-05 15:36:47
696
转载 UIWindow in iOS
原文地址:http://www.fantageek.com/1317/uiwindow-in-ios/n this article, I ‘ll share what I know about UIWindowkeyWindowAn app can have many UIWindow. The key window is the one that is designa
2014-12-11 19:52:33
1339
转载 Using multiple UIWindows in iOS applications
原文地址:http://shaune.com.au/using-multiple-uiwindows-in-ios-applications/I have been playing around with using multiple UIWindows in an iOS application at my current client for the last few days and
2014-12-11 19:02:25
822
原创 cocoapod卡在了analyzing dependencies
虽然公司的项目没有使用cocoapod,但是有一些第三方库本身依赖其他第三方的库,并且是用cocoapod来管理这些依赖的,所以在使用某些第三方库时,还是需要用到cocoapod的。今天在github上fork了一个控件,这个控件还依赖另一个控件,于是我就 pod install 了,却一直卡在analyzing dependencies ,一开始还怀疑是不是被墙了,后来上网搜了一下,发现了解
2014-11-06 13:35:52
2777
转载 ios中UIImageView展现图片的不同处理方式
原文链接:http://www.cnblogs.com/lovecode/archive/2011/11/27/2265275.html#commentformiPhone图像通常存储在以下4个地方:相册(PhotoAlums):用户可以使用UIImagePickerController类提供的交互对话框从该相册中获取图像。应用程序包:将图像与可执行程序、Info.plist文
2014-05-15 14:27:23
841
转载 UIView之endEditing方法
原文地址:http://my.oschina.net/hmj/blog/100020问题在 《IOS 键盘的显示和关闭》 一篇介绍了键盘的显示与关闭的原理流程性的东西,在关闭如果当前我们正在在textField上输入文本的话,我们只要做如下操作 1[textField resignFirstResponder]
2014-04-28 14:27:47
1456
原创 ios开发小技巧
1.整个app禁止旋转屏幕:- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { return UIInterfaceOrientationMaskPortrait; }
2013-12-18 00:06:58
672
原创 内嵌在UINavigationController中的UISearchDisplayController使setNavigationBarHidden失效的解决办法
如果在UINavigationController中的某一个UIViewController中使用了UISearchDisplayController,那么当我们使用search功能时,会隐藏NavigationBar,使用完以后会再让NavigationBar出现。让我们从UISearchDisplayController的搜索结果中选中一个cell,来在UINavigationControll
2013-11-26 15:56:23
3958
3
原创 使用ios7中的tts(text to speech)功能
我自己的小项目里需要用到 text to speech功能,就是把文字用语音读出来。一开始想用讯飞的云语音,但是每次发音都需要和讯飞的服务器通讯才能获取到音频。上网闲逛的时候发现ios7新添加了这个功能,就拿来试用一下,官方文档在此:苹果官方文档。使用非常简单,代码就这么几行:AVSpeechUtterance *utterance = [AVSpeechUtterance
2013-10-16 14:09:02
2454
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人