01 2013 档案
摘要:我认为移动应用程序相对于桌面程序的主要特点是:强交互。这样就引出一个问题:用什么样的设计可以使程序的 UI,Animation 等交互部分有序、受控?我最近在思考这个问题,目前认为解决这类问题有两个思路: 1、基于游戏的技术,比如场景管理。对于游戏开发的领域不是很了解,这个暂且放一放。 2、基于状态...
阅读全文
摘要:I am using a toolbar in the inputAccessoryView property of a textView. When the keyboard shows, it displays the toolbar as expected. When the device i...
阅读全文
摘要:Our applications need input and the default iOS keyboards are often not optimally suited to providing the sort of data we want. When we find that we r...
阅读全文
摘要:ref:http://www.thebirdietoldme.com/userActions/thread/Question.aspx?id=12103677The reason why this started happening is that anyUIViewinstance that is...
阅读全文
摘要:在 Windows 中主要有两种钩子:消息钩子与函数钩子,有时在实现某些功能时必须用钩子。 对函数挂钩子主要是进行入口地址的替换,广义的理解很多东西都是钩子,比如中断向量表。 可以对 C++ 中的静态函数与虚函数挂钩子,但是很难对普通函数挂钩子,主要原因是C++没有统一的 ABI标准。 但是可以对 ...
阅读全文
摘要:使用了Chrome-iOS后开始思考这个问题,如何才能替换掉 UIWebView 的网络模块。单纯解决这个问题,有两个方法: 1、实现 NSURLProtocol,替换 HTTP 协议的处理方式。 优点:正规 缺点:影响范围大 2、实现 NSURLCache,在对应的方法中用自己的网络模块发出请求。...
阅读全文
摘要:需要 Javascript 与 ObjC 合作从而达到这个目标。There are two parts to make this work: a JavaScript handler and UIWebView delegate methods. In JavaScript, we can modi...
阅读全文
摘要:无奈,笔记本内存有限,在浏览一些大的工程时,需要禁用 xcode 的索引服务:defaults write com.apple.dt.XCode IDEIndexDisable 1如果需要再次打开则:defaults write com.apple.dt.XCode IDEIndexDisable ...
阅读全文
浙公网安备 33010602011771号