iOS 7 Programming: Pushing the Limits

iOS 7 gives your Apple devices a fresh user interface, but the beauty of iOS 7’s user interface changes are not just skin deep. Like this book, iOS 7 is a major update that benefits both users and developers. We start the chapter discussing the new UI and how that new UI will impact your app. Moving on, we discuss the various SDK additions and the new IDE and Compiler, Xcode 5/LLVM...

Read More

iOS 6 PTL: Chapter 2 Errata

We made a typo in Chapter 2, section Collection Literals. The syntax for creating a new NSDictionary was written as   NSDictionary *dict = @[@"key1":@"value1", @"key2":@"value2", @"key2":@"value2"] The correct syntax is   NSDictionary *dict = @{ @"key1":@"value1",...

Read More

“New” (well, not really new) PRF functions for PBKDF2

In Chapter 11, I indicated that the only PRF available for PBKDF2 was SHA-1. I believe this was true when it was written (during the early betas of iOS 5), but it was not true by the time iOS 5 was released. iOS offers both SHA-1 and SHA-2 PRFs for use in PBKDF2: enum {     kCCPRFHmacAlgSHA1 = 1,     kCCPRFHmacAlgSHA224 = 2,     kCCPRFHmacAlgSHA256 = 3,     kCCPRFHmacAlgSHA384 =...

Read More

iOS 6 Programming Pushing the Limits

A brief introduction of what’s up in the next edition, iOS 6 Programming Pushing the Limits. http://blog.mugunthkumar.com/products/ios-6-programming-pushing-the-limits/

Read More

CGLayer no longer recommended

CGLayer may be better on paper than in practice. My new recommendations are the very common CGBitmapContext or CALayer.

Read More

Weak timers

Chapter 6, page 123 has a potential memory leak in it. In this particular program, it’s not possible for this to really leak, but in general it’s worth understanding the correct way to approach it. In the example code, the view retains an infinitely-repeating NSTimer, for which the view is the target. This is a retain loop, since NSTimer retains its target. There are various ways to...

Read More
Page 1 of 3123