¡@

Home 

2014/10/15 ¤U¤È 10:09:55

iphone Programming Glossary: gotcha

How to handle different orientations in iOS 6

http://stackoverflow.com/questions/15947349/how-to-handle-different-orientations-in-ios-6

preferredInterfaceOrientationForPresentation only gets called when using presentViewController animated . A small gotcha if you require a navigation bar in each stage of your scene you will need to enclose each modal view controller with a navigation..

How to show HTML text from API on the iPhone?

http://stackoverflow.com/questions/4138336/how-to-show-html-text-from-api-on-the-iphone

only about 2 3 weeks in with NO obj c background. So if a UIWebView is the right approach I'd also appreciate any gotcha notes if there are any. iphone objective c ios share improve this question As David Liu said UIWebview is the way to..

How to use Quartz 2D to add drop shadow to an UIImage or UIImageView?

http://stackoverflow.com/questions/5973298/how-to-use-quartz-2d-to-add-drop-shadow-to-an-uiimage-or-uiimageview

Don't forget to #import QuartzCore QuartzCore.h in your implementation. EDIT Adding in @Luke's comment Just a little gotcha that might save some other people some time make sure you have not set layer.masksToBounds to YES on your view otherwise..

SQLlite3 Update statment has no effect

http://stackoverflow.com/questions/6622582/sqllite3-update-statment-has-no-effect

not follow the rule might not have even been aware that they were breaking the rule in the first place since it is a gotcha arcane sort of rule. Anyway what this means practically is that one implementation may treat a supplied value as an alias..

iOS: Access app-info.plist variables in code

http://stackoverflow.com/questions/9530075/ios-access-app-info-plist-variables-in-code

might do the following NSString appVersion NSBundle mainBundle objectForInfoDictionaryKey @ CFBundleVersion There is a gotcha in that the version number now has two attributes in the info.plist but you get the idea If you view your info.plist as..

Overriding highlighted selection in UIPickerView

http://stackoverflow.com/questions/958443/overriding-highlighted-selection-in-uipickerview

a custom height. The background color must be UIColor clearColor . The view must capture all touches. The one gotcha when using UILabel instances as the custom view is that UILabel defaults userInteractionEnabled to NO UIView on the other..