自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

My iOS Dev Learning Curve

Here I will just pile up my iOS practice code snippets, making it a handy cheatsheet for iOS novice

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除