- 博客(7)
- 收藏
- 关注
原创 How to use Delegate?
Simply put, Delegate is a mechanism for one class (generally a generic, delegating class) to outsource some job to the delegate class (the delegated class, who know better how to get the job done).
2013-07-26 17:09:22
641
原创 Strong vs. Weak in @property declearation
Almost every single Objective-C new learner is wondering "How to use strong or weak when I declare a @property?" This stackoverflow article has a brief yet comprehensible explanation for this quest
2013-07-26 15:30:11
546
原创 Read Accelerometer Value
Simply put, we just need to implement the UIAccelerometer delegate, and we are all set. 1. declare the delegate in the class declaration where you want to read the Accelerometer value, e.g. @
2013-07-25 15:15:48
546
原创 customize your own rotation behavior
http://stackoverflow.com/questions/6404786/rotating-an-image-90-degrees-on-same-position-when-orientation-changes Solution 1. define 2 view hierarchies and determine which one to show as device
2013-07-23 14:30:09
688
原创 UIDeviceOrientation vs. UIInterfaceOrientation
These two orientations are defined differently and are so confusing. UIInterfaceOrientation (indicates the orientation of the status bar) UIDeviceOrientationLandscapeLeft, // home but
2013-07-23 10:34:46
952
原创 Something you need to know about Objective-C and iOS programming: for experienced programmers
Although I have been programming with C, python, etc. for years, Objective-C is completely new to me, and it really freaked me out a little bit at the beginning. Here are some new syntax and feature
2013-07-22 13:57:27
667
原创 Your first video app: show a video preview on screen
This is a very basic demo showing video preview on screen using AVFoundation framework. To learn more about development with AVFoundation, visit http://developer.apple.com/library/ios/#documentation/
2013-07-21 16:34:28
923
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅