code

 

Xcode has long been installed in the /Developer folder on the Mac. The introduction of Xcode 4.3 in the App Store moved that to /Applications/Xcode.app. Fix behavior for some of those apps that rely on that hardcoded path.

Read

Creating a multi-line word-wrapping tail-truncating UIButton should be simple to do. However it requires a subclass to achieve the effect...

Read

Ensuring View Controllers always displayed in the desired orientationThe problem arises that one view controller is portrait (or landscape) only, and everything else can be rotated. Then when navigating to that one controller, the view is incorrect and it tries to display in landscape... to undesired results. There is a solution!

Read

ActionScript, Java, and most other ECMAscript-based languages (even javascript) have an easy way to define variables as protected or private. Objective-C does not have a simple way to do so, at least when based on the recommended ways to create variables.

Read

Illustration of an iPhone rotating in space to show device orientation with a green arrow and a crazy photo of me in the February 2011 Chicago blizzard as the wallpaperImplementing rotation in a UIViewController is simple because Apple provides methods at any number of points to ensure animation is crisp. Rolling your own in a UIView is easy to set up, however it is far less robust. This will show how to handle orientation change for your iOS device.

Read

the path to memory efficiency as represented by an iPhone background image as a path in the forest, which is convered up by the slide to unlock barUIViewControllers are great for displaying and managing views. However, I find that once memory issues come into play, the experience can degrade. Also, memory management with the didReceiveMemoryWarning and viewDidUnload methods do not have any best practices in the Apple documentation. This is an example of how to provide a consistent experience utilizing the built–in memory methods in a UIViewController.

Read
Previous