iPhone Life magazine

How-To

Swift Programming 101: Demystifying Swift's Initializers (Part 2)

image

In this second part of my two-part post on Demystifying Swift's Initializers, I explain the concepts of initializer chaining, two-phase initialization, and initializer inheritance using hands-on examples that walk you through some of these deeper concepts. You can read part 1 of this post at this link.

If you would like to follow along and perform the step-by-step instructions with this post (highly recommended) you can download the project we have completed so far at this link.



Tip of the Day: Keep Your iPad from Ringing Everytime You Get a Phone Call

image

Apple's new iOS 8 is great, and one of those great new features is Continuity. With Continuity, users of multiple Apple products can take a phone call on one device and switch to another on the fly. I typically leave my iPhone docked at the entrance to my house and then I work upstairs on my MacBook. When the phone rings, I have to make a mad dash to answer it. Now I can take the call on my iPad. And soon, with Mac OS X Yosemite, I can answer the phone call on my MacBook!



Tip of the Day: Answer Phone Calls On Your iPad

image

Forget running downstairs to where you left your iPhone, take the call on your iPad or iPod instead (as long as you have later-model devices running iOS 8).



Tip of the Day: Add Phone Numbers to Contacts from Mail in iOS 8

image

You probably already know you can call a phone number from within an email by tapping on the number. But did you know that you can now quickly add the phone number to Contacts as well?



Swift 101: Demystifying Swift's Initializers (Part 1)

image

Now that Apple has officially released Xcode 6 and the NDA has been lifted, it's time to dive deeper into Swift—Apple's new language for building iOS apps. Learning how to properly use initializers in Swift can be daunting at first. Swift's requirement that all stored properties in a class are initialized adds complexity to the initialization process. In the first part of this two-part post I'm going to demystify initializers as I provide a hands-on approach to learning how to best implement initializers in your custom classes.



Tip of the Day: Use Siri Hands Free with iOS 8

image

Siri can be quite useful, but if you really want a "Jarvis" kind of experience, like Tony Stark in Iron Man, you need to be able to interact with Siri without touching a button. Fortunately, iOS 8 makes this possible. 



Tip of the Day: Take Slo Mo Movies on Your iPhone

image

The iPhone 5s gave us Slo Mo video capture, where images are recorded at 120 FPS (Frames Per Second) and then played back at 30 FPS. But now the iPhone 6 offers Super Slo Mo, which captures 240 FPS. This will allow for some incredible action videos. I played with this new feature at my daughter's softball game and was able to analyze her swing and running essentially in real time. This could be a great boon to coaches and athletes, not to mention a lot of fun! Here's how to use it:



Tip of the Day: How to Use the New Self-Timer on Your iPhone's Camera

image

Until now, you could only use a self-timer with your iPhone camera via third-party apps that included the feature. It's surprising this was never a built-in option for users before, but either way, we’re happy it’s finally here!



iOS 8 Upgrade Fail — Why It May Be Better to Upgrade Via Connecting to Your Computer [update]

image

Eager to upgrade to iOS 8, I connected my iPad to my computer and booted up iTunes. The iTunes software automatically backed up my iPad to my computer, as it usually does whenever I connect my iPad. Then I clicked on the update button and confirmed that I wanted to update to iOS 8. The update downloaded just fine, but then when it was installing I got a message on my computer that there was an unknown error. I looked at the screen of my iPad and nothing was happening in the progress bar. Basically it seemed frozen. I had to press the power button and home button simultaneously to force the iPad to shut down. Then when I restarted it, I got a message that I needed to restore to the original factory settings. Which I did by selecting that option in iTunes. Then once the iPad was restored to its original state, iTunes asked me if I wanted to set it up as a new iPad or to restore from the backup. I chose the latter, and when it was done, things were back to normal — and my iPad Air was running iOS 8.



Do NOT upgrade to iOS 8 just because you can

image

Apple is great about making the latest operating system run on older equipment. But just because you CAN do something doesn't mean you should! There are reports from iPhone 4S owners that suggest they might have been better off without upgrading.



Syndicate content