Apple Swift language resources

What is Swift ? From Apple ® website: Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app […]

Read More
Swift

Swift is a new programming language developed by Apple for iOS and OS X development, introduced at Apple’s WWDC 2014. This language will replace objective-C, the actual Apple’s object oriented language. Swift and Objective-C code, as well C and C++, can be used in a single program. Some differences from other “C-style” languages are: Statements do […]

Read More
iOS App Icons

May 2015 Update In xcode the “Product Type” of icon files must be ICON (and not for example PNG) to avoid the error “size 0X0” For all images and icons the not interlaced PNG format is recommended. The standard bit depth for icons and images is 24 bits—that is, 8 bits each for red, green, […]

Read More
IOS 7 programming tips

Problem The behavior of the pushViewController statement has changed. Solution To update views before setText use: […….ViewController view];   Problem View under navigation bar Solution float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (systemVersion >= 7.0) { self.navigationController.navigationBar.translucent = NO; }   Problem deprecated: [self presentModalViewController:…Controller animated:true]; Solution [self presentViewController:…Controller animated:true completion:nil];   Problem [window addSubview:[navigationController view]]; warning: “Application windows are expected to have a root view controller at […]

Read More
IOS 5 and 6 programming tips

IOS 5 Old style: cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@”cellID”] autorelease]; New style: cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@”cellID”] autorelease];   IOS 6 Problem ‘objectType’ used as the name of the previous parameter rather than as part of the selector Solution: inserting a space before the parameters :…. fixes the warning   Problem method returns […]

Read More