Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks, is an opportunity to reimagine how software development works.
This video was developed by Skip Wilson. You can follow him on Twitter (@SkipAllMighty).
Introducing Cheapo Casino
Over the past three years I have been working on a casino game called “Cheapo Casino”. It was inspired by the 1997 movie Vegas Vacation. Half way through the movie when Clark is trying to win back the money he lost, Eddie recommends a cheap casino off of the strip (Watch the Video on YouTube). It had games like Pick a Number, Spin The Wheel and War. I made a game that has many of the usual casino games but also threw in some “cheap” games for fun!
I wasn’t sure if I was ever going to finish it since I really wanted to include 13 different games. Looking back at that decision now I should have probably only focused on a couple games and release updates with new ones. In addition I was working alone, concept, design and development. I got overwhelmed many times so I would put the project on hold and worked on another app (Connect Poker) to get that gratification of releasing a new app to the store. That happened about eight more times! (Check out my apps) Finally I dedicated myself to completing Cheapo Casino. I spent 2 hours a night and took a couple vacations days to finish it. I am very happy to introduce you all to Cheapo Casino!
Play against your friends on Facebook, and see who has the best luck! Sit down, relax, have a drink & some chips – on us. We’ve got gorgeous games and lots of friendly people to play against with for FREE!
Make a fortune with HUGE Jackpots, Free Daily Chips and more! Will you play it safe and hold your cards, or double down and get a lucky ace? Tons of FREE chips given out each day!
• Pick a Number
• Guess Which Hand
• Flip a Coin
• Rock, Paper, Scissors
• Three Card Monte
• Spin The Wheel
• Horse Racing
• Slot Machine
• Video Poker
• Casino War
• Scratch Tickets
• Play all 13 Cheapo Casino games to test your luck!
• Bonus FREE chips every hour! You’ll always have some chips to play with!
• Play LIVE against your friends on Facebook!
• Beat the house in Blackjack or test your skills in Poker!
• Log in with Facebook, or play as a guest.
• Experience state-of-the art game design, graphics and sound
• Support for iPhone 4, iPhone 5 and iPad!
Find out more at http://www.cheapocasino.com
Say Hello to Swift
One of the biggest announcements coming out of WWDC this year is the creation of a completely new programming language called Swift – the newest programming language used to build apps. Today, most all Apple software is built with Objective-C. Originally designed in the 1980s and soon adopted by Next Computer–the Steve Jobs-led company whose technologies eventually morphed into the modern Mac and the iPhone–the language has ridden these devices to enormous popularity.Apple is wasting no time getting developers educated on the new tools available to them by making The Swift Programming Language guide book immediately available on iTunes. Apple’s new guide offers 500 pages of info on Swift, providing readers with a tour of the new language, along with a detailed guide that dives into each new language feature.
It should feel familiar to those who are already used to Objective-C, Apple says, and is meant to “unify the procedural and object-oriented portions of the language.” It does diverge from Objective-C in more than just the syntax, though; it also features variable types like tuples and optional types. It also includes operators that aren’t found in Objective-C, which allow you to perform remainder operations on floating-point numbers, for example.
Here are some of the highlights of the language according to Apple:
- Closures (similar to blocks in C and Objective-C) unified with function pointers
- Tuples and multiple return values
- Fast and concise iteration over a range or collection
- Structs that support methods, extensions, protocols.
- Functional programming patterns, e.g.: map and filter
Objective-C was always a hard language to pick up for new developers. We’ll have to see if Swift makes getting started with app development on Apple’s platforms easier, but from a first look at the documentation, it definitely feels more accessible than Objective-C.
But if you put the playground to one side, Swift isn’t really that different from many other languages. It’s mainly a way of bringing Apple’s platform up to par with languages like Ruby and Python–all without sacrificing the speed of Objective-C.
Ready to begin? Start with downloading the new XCode 6 Beta from the Apple Developer Portal. Next start reading The Swift Tour and for the best experience open the Guided Tour right in playground, which allows you to edit the code listings and see the results immediately.
iOS7, We’ve Got A Problem
Today is the day, iOS7 launches to all iPhones & iPads. What does that mean to us developers? A lot of work, that’s what. Unlike other transitions iOS5 -> iOS6, all previous apps “just worked” but this version is the biggest change since iOS 3.0. Approximately about 90% of apps tested are having trouble running on iOS7, these issues range from the apps crashing on launch to labels mis-aligned to the status bar at the top messing up views.
Let’s take a look at the most common issue developers are having, the status bar.
Status Bar Appears Over My View
You can achieve this by implementing new property called edgesForExtendedLayout in iOS7 SDK. Please add the following code to achieve this,
if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone;
You need to add the above in your -(void)viewDidLoad method.
iOS 7 brings several changes to how you lay out and customize the appearance of your UI. The changes in view-controller layout, tint color, and font affect all the UIKit objects in your app. In addition, enhancements to gesture recognizer APIs give you finer grained control over gesture interactions.
Using View Controllers
In iOS 7, view controllers use full-screen layout. At the same time, iOS 7 gives you more granular control over the way a view controller lays out its views. In particular, the concept of full-screen layout has been refined to let a view controller specify the layout of each edge of its view.
The wantsFullScreenLayout view controller property is deprecated in iOS 7. If you currently specify wantsFullScreenLayout = NO, the view controller may display its content at an unexpected screen location when it runs in iOS 7.
To adjust how a view controller lays out its views, UIViewController provides the following properties:
The edgesForExtendedLayout property uses the UIRectEdge type, which specifies each of a rectangle’s four edges, in addition to specifying none and all. Use edgesForExtendedLayout to specify which edges of a view should be extended, regardless of bar translucency. By default, the value of this property is UIRectEdgeAll.
If your design uses opaque bars, refine edgesForExtendedLayout by also setting the extendedLayoutIncludesOpaqueBars property to NO. (The default value of extendedLayoutIncludesOpaqueBars is NO.)
If you don’t want a scroll view’s content insets to be automatically adjusted, set automaticallyAdjustsScrollViewInsets to NO. (The default value of automaticallyAdjustsScrollViewInsets is YES.)
The topLayoutGuide and bottomLayoutGuide properties indicate the location of the top or bottom bar edges in a view controller’s view. If bars should overlap the top or bottom of a view, you can use Interface Builder to position the view relative to the bar by creating constraints to the bottom of topLayoutGuide or to the top of bottomLayoutGuide. (If no bars should overlap the view, the bottom of topLayoutGuide is the same as the top of the view and the top of bottomLayoutGuide is the same as the bottom of the view.) Both properties are lazily created when requested.
Course: iOS Mobile Application Development
Starting September 18, 2013 I’ll be teaching an Introduction to iOS Development course at the University of Toronto Continuing Studies. Since there are no books yet about iOS 7, I’ll be covering iOS6 and then dedicate the last class to “What’s New in iOS7”. The topics include: Introduction to the IDE, Implementing Views and Controllers, Tab Bars and Pickers, Table Views and Navigation Controllers, Developing for the iPad, Application Settings and Data Persistence.
Taking this course also gets you one step closer to a certificate in Mobile Business Technologies & Applications. See more information below.
Work Towards a Certificate in Mobile Business Technologies & Applications
The Certificate in Mobile Business Technologies will help you apply your programming skills to mobile development, create effective web interfaces for mobile users, create app interfaces using web technologies and many more skills necessary to work in mobile technology.
Classes start in September. Sign up now!
Choose your next course below:
For more information and a full listing of our Mobile Business Technologies courses
5-week Leadership Essentials courses will help you gain a professional edge, fast!