Using Modal Storyboard Segues – iPhone Programming

An important new feature in Xcode 4 is the use of Storyboards to quickly prototype the user interface of applications. With storyboards, we can define an application as a series of view controllers (called Scenes) and the transitions between them (called Segues). There are three types of segues available: Push, Modal, and Custom. In this blog, we’ll look at the simplest of these; the Modal segue.

Start Xcode, select “Create a new Xcode project,” choose the Single View Application template, and click Next. Name the project Segues, and make the following choices in the options window:

Make sure the “Use Storyboards” option is chosen: segues will not be available to us unless we use storyboards.

Click Next, choose a location to save the project, and click Create.

In the MainStoryboard.storyboard file, drag a new View Controller object to the window. Adjust the two view controllers until they are side by side, change their colors, and place a button on each view as shown here:

Add a new View Controller object to your project by selecting the ViewController object, then right clicking and choosing New File… from the popup menu. Using the Objective – C Class template, make this class a subclass of UIViewController and name it SecondViewController:

Save the new SecondViewController class in the default location and create it. Return to the MainStoryboard.storyboard file, and select the “View Controller” object in the second scene. Change the class of this object to SecondViewController as shown:

Segues allow us to create transitions between view controllers without writing a single line of code. CTRL-Drag from the “Second View…” button on the first view controller to the second view controller. In the resulting popup, choose Modal. Repeat these actions by dragging from the “First View…” button on the second view to the first view. Again, choose Modal. When you are finished, it should look something like this:

Select the segue object in the first scene, and change its properties as shown here:

Segues must have an Identifier, they do not work without one. Also note that we have set the Transition style to Flip Horizontal. Now select the segue object in the second scene, and make these settings to its properties:

Again, we have given the segue a name and a transition style. Now run the application:

The MainStoryboard object is hooked into the application at the UIApplication level. Any view controllers on the storyboard are therefore accessible via segues without writing any code! Experiment with different transition styles as an exercise.

If we need to do some other work during the segue (such as setting properties on a view controller that is about to be displayed), we can do so by defining the prepareForSegue: sender: delegate method of UIViewController. For example, we could set the color of the second view controller on the fly by making these adjustments to ViewController.h and ViewController.m:

//ViewController.h
#import <UIKit/UIKit.h>
#import "SecondViewController.h"

@interface ViewController : UIViewController

@property (nonatomic, strong) SecondViewController *secondVC;

@end

//ViewController.m
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

@synthesize secondVC;

– (SecondViewController *)secondVC
{
    if (!secondVC) {
        secondVC = [[SecondViewController alloc] init];
    }
    return secondVC;
}

– (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    UIViewController *destVC = (UIViewController *)segue.destinationViewController;
    destVC.view.backgroundColor = [UIColor blueColor];
}
…

In the header file, we’ve imported the SecondViewController.h file so we can make a property to control its background color. In the implementation file, we lazily instantiate this property by overriding its getter. Then we define the prepareForSegue:sender: method to get the segue’s destination view controller object, and set its background color property. The segue object is an instance of UIStoryboardSegue. It has two very important properties: destinationViewController and sourceViewController. These properties are both of type id; we must cast them to a UIViewController subtype to access their properties.

Running the application now will show the change:

Twitter changes cause Tweetbot for Mac alpha to be pulled

We’re starting to see changes to Twitter and Twitter clients following the announcement of new API rules. Late yesterday, Tapbots pulled the alpha version of Tweetbot for Mac. Paul Haddad explained that the company tried to work with Twitter to get around the user token limit during the beta-testing period. Twitter didn’t find any solution acceptable, Haddad said, so the public alpha download was pulled. Those who already have the alpha client are still able to use it.

Haddad assured users that the final version Tweetbot for Mac will be available in the near future. He also urged those who tried the alpha and decided not to use it to revoke access and up the user token.

Meanwhile, The Next Web points out that Twitter no longer identified which client was used to post a tweet.

Twitter changes cause Tweetbot for Mac alpha to be pulled originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 28 Aug 2012 08:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iOS and Android make for fastest tech adoption ever

Mobile marketing and analytics firm Flurry has another great research post up, this time about the speed of adoption for both iOS and Android. This one goes a little far into comparing apples and oranges, so to speak, but it’s still interesting. Flurry notes that both iOS and Android app usages has blown up in the last few years, so much so that it’s seeing traffic increases of over a few hundred percent from the past year in places like China, Brazil, and Chile.

Flurry now estimates that there are over 640 million iOS and Android devices running apps worldwide, and given the huge growth of that number, as well as the big numbers behind app and data usage on those devices, these smartphones are being adopted by users “10X faster than that of the 80s PC revolution, 2X faster than that of 90s Internet Boom and 3X faster than that of recent social network adoption.”

Unfortunately, Flurry doesn’t share the exact numbers behind those stats (not to mention that it’s hard to compare numbers like that anyway, given how tough it is to calculate in numbers what a “revolution” in the tech sense actually means). But the point is clear: The current smartphone growth is a huge movement in the tech industry, and is taking place on a much faster and larger scale than ever before.

iOS and Android make for fastest tech adoption ever originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 22:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Use Fotobooks+ to organize, store and share photos on your iPhone

Fotobooks+ is a US$0.99 app for iPhone that lets you organize photos in your Camera Roll into albums. The results look great and can be locked to keep select photos private. Here’s my look at Fotobooks+.

Pictures can be annotated with captions, which only appear once you’ve tapped an image. A second tap replaces the album backdrop with a black background.

If you have a Dropbox account, the albums can be saved there, and retrieved from the cloud if disaster strikes. Additionally, images can be emailed or sent to Facebook directly from the app.

Gallery: Fotobooks+

Note break in album title

You can have page after page of albums, all with different styles. You can, of course, put the images in any order, or move them between albums. All in all, this is a nice way to store photos with some features that go beyond what Apple offers in iOS.

There are a few problems, however. The albums aren’t very smart about displaying longer title text. I named an album “Landscapes” and the app wrapped the “s” onto a new line. I think the font size should be reduced to prevent this. When you mail a photo, your custom label doesn’t go along with it. I would think the purpose of the label is to share that information with others, but it doesn’t work that way. Also, complete albums can’t be shared, just individual photos.

The developers say they will add some new display effects in an upcoming version and that would be welcome.

Fotobooks+ is a nice app, and it’s priced appropriately. With a few adjustments it would be a world-class solution for photo storage and display. As it is, it is a very good app worthy of your consideration.

Fotobooks+ requires iOS 5.1. It is not a universal app, and I think an iPad version or a true universal version would be a really good addition to the feature set.

You can see some screenshots in the gallery above.

Use Fotobooks+ to organize, store and share photos on your iPhone originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 18:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple lists which Samsung products it will try to ban in US

Apple won a huge jury victory over Samsung on Friday, and was generally vindicated on allegations of infringing patents in Samsung’s smartphones. While the judge in the case still needs to uphold the jury’s verdict, it’s essentially all over but the crying — and appeals.

Now Apple has released a preliminary list of the models it’s alleging infringement, and here they are:

  • Galaxy S 4G
  • Galaxy S2 (AT&T)
  • Galaxy S2 (Skyrocket)
  • Galaxy S2 (T-Mobile)
  • Galaxy S2 Epic 4G
  • Galaxy S Showcase
  • Droid Charge
  • Galaxy Prevail

As you can see, the Galaxy S2 model has taken the brunt of the blame, and it indeed does look very similar to Apple’s iPhone. The Droid Charge doesn’t look quite as similar, but it infringes on “utility patents” rather than design patents. There’s also an injunction on the Galaxy Tab 10.1 device, but the jury on Friday didn’t rule that it infringed on Apple’s patents, so that battle is also going on.

Our breakdown of which patents were ruled on and how those rulings went is here.

The next hearing is scheduled for September 20th, at which point the judge in the case will look at the jury’s verdict, and consider possible injunctions on the infringing devices. Once that all takes place, we’ll know exactly what the fallout from Friday’s big decision will be.

Apple lists which Samsung products it will try to ban in US originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 18:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

RunKeeper and GymPact want you to get paid for tracking your fitness

Staying motivated to achieve your fitness goals is always difficult. But would you be motivated if someone actually decided to pay you for sticking to those fitness goals? That’s the idea behind GymPact, which today announced a partnership with RunKeeper to link the latter company’s fitness tracking app to its pay-for-workouts motivational service.

The idea behind GymPact is simple. You make a “pact” each week basically setting a monetary amount you’ll pay if you don’t make your exercise goals. For example, your pact may be to pay $25 if you don’t work out five days this week for at least 30 minutes. If you’ve made or exceeded your goal at the end of the week, you get paid by the money of those who didn’t meet their goals. If you decide to sit around and watch TV every night instead of working out, you are out $25.

How does RunKeeper come into this? There’s now a way to link your RunKeeper account with GymPact. If you already use the RunKeeper (free) app to track your physical activity, then you can click on the new RunKeeper button in the free GymPact app to link the two accounts. RunKeeper activities that count towards your GymPact include any runs, walks or bike rides that are tracked by RunKeeper’s GPS and include a minimum of 1/2 mile distance and 30 minutes of activity with a pace above 2 miles per hour.

GymPact is a unique way of staying motivated to keep active, and the integration with the very popular RunKeeper app makes a lot of sense.

RunKeeper and GymPact want you to get paid for tracking your fitness originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 17:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Dear Aunt TUAW: I made the switch. What do I do with my old system?

Dear Aunt TUAW,

I did it. I made the switch. Mountain Lion and those hot Retina display MacBook Pros finally brought me to the Mac Side.

So, what do I do with my old Windows system? It runs Win 7, is reasonably functional, and in need of a task. What do you suggest?

Your loving (new) nephew,

Colin

Dear Colin,

Auntie is sure there are many fine uses for your old system. There are always flowers to press, doors to hold open…but she thinks media servers and public web installations are two of the best.

Whether you’re running XBMC in the living room (plays back nearly everything you throw at it, letting you watch a wide range of video files) or Firefox in the Kitchen (great for news, weather, and recipes), old computers provide the perfect solution for always-on items that need to perform with minimal intervention.

There’s also the SETI project, which uses distributed computing to help analyze radio telescope data. Or you could go wild and install Linux, to see how the other other half lives.

Your system is emotionally end-of-lifed anyway, now that you own your new MacBook. By trying out these projects, you ensure that when the PC does conk out and you’re tired of performing fixes, you’ll feel more as if you got your full worth out of it.

If you’re not in the mood for an in-home install, you could just sell your system on Ebay. Make sure to wipe your drive, and ship any OEM Windows disks that came with your computer.

Auntie is, admittedly, not a Windows expert, so she’s going to turn the question over to her nieces and nephews. What solutions can you recommend for Colin’s old PC?

Hugs,

Auntie T.

Dear Aunt TUAW: I made the switch. What do I do with my old system? originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 17:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Google reacts to Apple vs. Samsung decision

Samsung and Apple didn’t waste anytime issuing statements on Friday after the jury handed down its decision in the US infringement trial between the two companies. Noticeably quiet in the aftermath was Google, which waited a short time before commenting on the verdict. In a statement provided to The Verge, Google said the patents in the case “do not relate to the core Android operating system” and added that the entire mobile industry is “building on ideas that have been around for decades.”

The court of appeals will review both infringement and the validity of the patent claims. Most of these don’t relate to the core Android operating system, and several are being re-examined by the US Patent Office. The mobile industry is moving fast and all players – including newcomers – are building upon ideas that have been around for decades. We work with our partners to give consumers innovative and affordable products, and we don’t want anything to limit that.

Now that the verdict is in, Apple is entitled to file an injunction request against Samsung’s infringing devices, and Samsung can file an appeal. With Samsung vowing to take its appeal all the way to the Supreme Court if necessary, this trial is far from being over.

Google reacts to Apple vs. Samsung decision originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 16:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily iPhone App: Bridge Call Dialer speeds conference calling

As much as we love the multitasker flexibility of the iPhone, there are situations where you might find it slightly inconvenient to have your email, notepad, address book and phone all stacked atop one another on a touchscreen. Most business professionals experience one of those situations on a regular basis: the simple (or not so simple) conference call.

Sure, if your meeting host is using an integrated service that supports iOS directly (WebEx, GoToMeeting, Fuze Meeting etc.) then it’s one-button easy to join the call via VoIP or a callback. But most of the time, you’ll find yourself jotting down a bridge number and PIN on a piece of paper, or switching between apps hastily to memorize the access code before the voice prompt times out. Not ideal.

That’s why I’m so fond of AHUB’s $1.99 iPhone utility Bridge Call Dialer. The feature list is brief and the interface utilitarian (at best), but what it does it does oh so well. If you’ve got a calendar appointment with a conference call number listed, pop open BCD and it will scan through the event description.

Tap once to enter the bridge number, again to capture the PIN, and then tap “call.” Watch, pleasantly relaxed, as BCD hands off the dial string to the Phone app, complete with pauses and octothorpes, to join you to the conference.

The current version of BCD lets you save one-click “frequent calls” detail so you can quickly rejoin a regularly scheduled phone meeting. You can also associate a conference call number and PIN with a particular iPhone contact; that way, whenever that person sends you a meeting invite, their conference info will be prepopulated automatically.

New in BCD 3.0 is the ability to specify a VoIP app to handle calls selectively (on WiFi or when they’re internal PBX calls), rather than using the iPhone’s built-in phone. Configuring your VoIP tool in BCD requires that the dialing app support a URL scheme to hand off the number, which not all apps do; Talkatone is explicitly supported, and it looks like Acrobits SIP, Line2 and the open-source Siphon all have the ability to take a call handoff. I’d love to try it with Skype or Bria, which are my go-to apps for calls, but it may take some tweaking.

The next time you reach for a pen and paper before a conference call, consider a $2 investment in streamlining your day and treat yourself to a license for BCD.

Daily iPhone App: Bridge Call Dialer speeds conference calling originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 16:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Samsung issues memo to employees after loss to Apple

Samsung issued a memo to its employees today in response to the Friday verdict finding that the company willfully infringed on a number of Apple patents. Apple CEO Tim Cook was quick to send an email to employees on Friday stating that “The jury has now spoken. We applaud them for finding Samsung’s behavior willful and for sending a loud and clear message that stealing isn’t right.” Samsung’s employee memo wasn’t so upbeat.

The Samsung email (see full text below in press release box) is pure sour grapes, stating that “History has shown there has yet to be a company that has won the hearts and minds of consumers and achieved continuous growth, when its primary means to competition has been the outright abuse of patent law, not the pursuit of innovation.”

[via 9to5Mac]

Show full PR text
On Friday, August 24, 2012, the jury verdict in our trial against Apple was announced at the US District Court for the Northern District of California. The following is an internal memo that reflects Samsung’s position regarding the verdict:

We initially proposed to negotiate with Apple instead of going to court, as they had been one of our most important customers. However, Apple pressed on with a lawsuit, and we have had little choice but to counter-sue, so that we can protect our company.

Certainly, we are very disappointed by the verdict at the US District Court for the Northern District of California (NDCA), and it is regrettable that the verdict has caused concern amongst our employees, as well as our loyal customers.

However, the judge’s final ruling remains, along with a number of other procedures. We will continue to do our utmost until our arguments have been accepted.

The NDCA verdict starkly contrasts decisions made by courts in a number of other countries, such as the United Kingdom, the Netherlands, Germany, and Korea, which have previously ruled that we did not copy Apple’s designs. These courts also recognized our arguments concerning our standards patents.

History has shown there has yet to be a company that has won the hearts and minds of consumers and achieved continuous growth, when its primary means to competition has been the outright abuse of patent law, not the pursuit of innovation.

We trust that the consumers and the market will side with those who prioritize innovation over litigation, and we will prove this beyond doubt.

Samsung issues memo to employees after loss to Apple originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 15:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Rumor Roundup: October surprise

Though this week’s Apple news was dominated by the company’s not-at-all-shocking victory over Samsung in the Patent Trial of the Century, that doesn’t mean sites didn’t find time to squeeze out the usual gamut of rumors.

Apple’s ‘iPhone 5 Tsunami’ predicted to sell 250M units over life cycle (AppleInsider)

Some analyst consulted his crystal ball and determined the next iPhone — which hasn’t sold a single unit or even been officially confirmed to exist yet — will sell a quarter of a billion units. Apple’s best quarter so far only managed 15M iPhone sales, for reference.

Even though the historical data (revealed in the Samsung trial discovery) shows each new iPhone has sold approximately as many units as all the iPhones before it combined, eventually there will come a time when that kind of growth is impossible unless every single living human being buys one. We’re not quite there yet, but it’s still way too early to make a call on the number of units sold for a product that’s not even on the market.

iPod nano stock shortages across US retail seem to point at upcoming refresh (9to5 Mac)

Last week I let the snark flag fly when 9to5 Mac posted about a German “reward points” company claiming to be running dry on iPod nanos. The site did some further reporting and took the wind out of the snark flag in the process: according to their research, it turns out the nano is short on stock at a few retailers you may actually have heard of, like Amazon, Best Buy, and Walmart.

Bottom line, if you know someone who’s expressed interest in buying an iPod nano, maybe convince them to wait a couple of weeks. It’s not looking like a smart time to buy one.

Apple to Ramp Up 7.85″ iPad Mini Production in September? (MacRumors)

“Digitimes reports that” — forget it. Just never mind.

Verizon Vacation Blackout Reveals The New iPhone Will Launch On Friday, September 21 (TechCrunch)

“A trusted Verizon employee” confirmed to TechCrunch that Verizon has declared they shalt not take vacation from September 21-30. Given the rumors out there already about the iPhone’s release date, the natural conclusion is this is related to the launch of the next iPhone.

These vacation blackout periods have often been a decent hint of forthcoming launch dates, so it seems we won’t have a full one-year wait between the iPhone 4S and the iPhone whatever-it’s-called after all.

iPhone 5 supply shortages could make Apple’s new phone hard to find (BGR)

Another “report” sourced from Digitimes, this time with the usual Chicken Little nonsense about component shortages meaning devices will be in short supply. Seriously, Digitimes says this literally every time a new Apple product is rumored to launch.

I live in the middle of the ocean, more than a thousand kilometers from the next nearest bit of land, and there isn’t a single Apple Store in my country. The only times I’ve ever had trouble getting hold of a newly-launched Apple product have been due to the incompetence of a local telco or a brain-damaged Australian shipping company. Granted, there’s usually a launch delay of several weeks before the products make it down to where I live in the first place, but once they do they’re not hard to find.

Bottom line: If you simply must have the latest gizmo on launch day, then go get in line. If your constitution can handle a wait of a couple weeks, then don’t worry about it. After all, if Apple’s supposed to sell 250 million of the things, it has to be cranking them out at a breakneck pace already.

LG says started production of new screen, as Apple plans product launch (Reuters)

Reuters’ headline makes it sound like LG’s CEO got behind a podium and said outright the company was building screens for Apple. Instead, all he said was “We just began mass production and we don’t expect any disruption in supplies.” Every other word in the article is speculative.

These screens probably are bound for the next iPhone, sure. But Reuters (and most of the rumor blogs that followed in its trail) didn’t do a stellar job distinguishing between the CEO’s own comments and Reuters’ own interpretation of the event.

Alleged Apple ‘iPad mini’ cases show rear camera, mystery hole (AppleInsider)

Giz-China.com (sounds legit!) posted photos of third-party cases supposedly destined for the iPad mini. These were obviously worth every bit of attention they received, because when have case makers ever gotten it wrong?

Claimed Next-Generation iPod Touch Case Points to Significant Redesign (MacRumors)

From the same dubious Chinese source as the iPad mini case leak, but this time for a different device: the iPod touch. This case also shows a “mystery hole” — two forthcoming products with “mystery holes” raises the kinds of questions I’m not comfortable writing out in full. This is a family publication.

New rumors ahead of Apple media events: iPod touch redesign, iPod nano with WiFi, ‘iPad mini’ name (9to5 Mac)

Via 9to5 Mac, we learn that Macotakara has said the next iPod nano will have Wi-Fi for connecting to the iTunes Store, and the “iPad mini” will actually be called the “iPad mini.”

Macotakara has gotten a few things right in the past, but not nearly often enough to take what the site says as gospel. Wi-Fi in the nano sounds like a logical enough development, but I must be the only person left in the tech world who thinks “iPad mini” is a tremendously irksome product name. Why not just go full-on ridiculous and call the iPod touch the “iPad nano” instead?

Sharing the Stage (Daring Fireball)

John Gruber officially needs to move out of my head. No less than 24 hours after a lunchtime conversation with my boss where I said it makes no sense for Apple to introduce a major new product like the “iPad mini” at the same event as a new iPhone, Gruber laid out a case eerily similar to my own. His premise is essentially that the press has a limited attention bin to draw from; they could focus attention (and adulation) on the newest iPhone or a new form of iPad, but not both at once.

Traditionally well-informed Jim Dalrymple of The Loop gave some brief affirmation for Gruber’s analysis, which he repeated to Mike and Kelly on last night’s Talkcast. Not long after, AllThingsD went all-things-in on the rumor, saying that Gruber’s contention “more than makes sense — it’s so,” according to sources. ATD’s Apple connections are many and varied (starting at the top with Uncle Walt himself), so when the site puts multiple pins in the calendar that adds a lot of weight.

I’m inclined to agree. Think about it: I can’t recall a single Apple keynote event in the past 10 years that went significantly over two hours. They usually hover around the 90-minute mark. Here’s how I see the next event breaking down:

  • 15 minutes of recap on Apple’s sales (the “bragging rights” intro)
  • 15 minutes reviewing iOS 6 features (in case we all forgot since June)
  • 30 minutes talking about the new iPhone’s hardware and any iOS software features specific to it
  • 15 minutes of third-party software demos
  • 15 minutes of explanatory movies, new ads, and wrapup

Not only does that leave no time for an iPad mini intro, it also doesn’t give us much (if any) time to introduce new iPods, either. That’s why I think another event in October will give us the new iPod touch, probably new iPod nanos, and (god help us) maybe even an iPad mini. Here’s how that event might play out:

  • 5 minutes bragging about iPhone sales
  • 20 minute demo of the new iPod nano
  • 15 minute demo of the new iPod touch
  • 30 minute demo and justification for the existence of the iPad mini
  • 10 minutes third-party software demos (Gosh, look how easy it is to build for this new device)
  • 10 minutes explanatory movies, new ads, and wrapup

It makes sense to me, anyway. Don’t be shocked if the iPad mini is a no-show at the September event, but count on the internet to erupt in fury if it isn’t there.

Rumor Roundup: October surprise originally appeared on TUAW – The Unofficial Apple Weblog on Mon, 27 Aug 2012 15:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Using Modal Storyboard Segues – iPhone Programming

An important new feature in Xcode 4 is the use of Storyboards to quickly prototype the user interface of applications. With storyboards, we can define an application as a series of view controllers (called Scenes) and the transitions between them (called Segues). There are three types of segues available: Push, Modal, and Custom. In this blog, we’ll look at the simplest of these; the Modal segue.

Start Xcode, select “Create a new Xcode project,” choose the Single View Application template, and click Next. Name the project Segues, and make the following choices in the options window:

Make sure the “Use Storyboards” option is chosen: segues will not be available to us unless we use storyboards.

Click Next, choose a location to save the project, and click Create.

In the MainStoryboard.storyboard file, drag a new View Controller object to the window. Adjust the two view controllers until they are side by side, change their colors, and place a button on each view as shown here:

Add a new View Controller object to your project by selecting the ViewController object, then right clicking and choosing New File… from the popup menu. Using the Objective – C Class template, make this class a subclass of UIViewController and name it SecondViewController:

Save the new SecondViewController class in the default location and create it. Return to the MainStoryboard.storyboard file, and select the “View Controller” object in the second scene. Change the class of this object to SecondViewController as shown:

Segues allow us to create transitions between view controllers without writing a single line of code. CTRL-Drag from the “Second View…” button on the first view controller to the second view controller. In the resulting popup, choose Modal. Repeat these actions by dragging from the “First View…” button on the second view to the first view. Again, choose Modal. When you are finished, it should look something like this:

Select the segue object in the first scene, and change its properties as shown here:

Segues must have an Identifier, they do not work without one. Also note that we have set the Transition style to Flip Horizontal. Now select the segue object in the second scene, and make these settings to its properties:

Again, we have given the segue a name and a transition style. Now run the application:

The MainStoryboard object is hooked into the application at the UIApplication level. Any view controllers on the storyboard are therefore accessible via segues without writing any code! Experiment with different transition styles as an exercise.

If we need to do some other work during the segue (such as setting properties on a view controller that is about to be displayed), we can do so by defining the prepareForSegue: sender: delegate method of UIViewController. For example, we could set the color of the second view controller on the fly by making these adjustments to ViewController.h and ViewController.m:

//ViewController.h
#import <UIKit/UIKit.h>
#import "SecondViewController.h"

@interface ViewController : UIViewController

@property (nonatomic, strong) SecondViewController *secondVC;

@end

//ViewController.m
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

@synthesize secondVC;

– (SecondViewController *)secondVC
{
    if (!secondVC) {
        secondVC = [[SecondViewController alloc] init];
    }
    return secondVC;
}

– (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    UIViewController *destVC = (UIViewController *)segue.destinationViewController;
    destVC.view.backgroundColor = [UIColor blueColor];
}
…

In the header file, we’ve imported the SecondViewController.h file so we can make a property to control its background color. In the implementation file, we lazily instantiate this property by overriding its getter. Then we define the prepareForSegue:sender: method to get the segue’s destination view controller object, and set its background color property. The segue object is an instance of UIStoryboardSegue. It has two very important properties: destinationViewController and sourceViewController. These properties are both of type id; we must cast them to a UIViewController subtype to access their properties.

Running the application now will show the change:

The Simpsons: Tapped Out — Grind Away

Almost two months ago, we ran a review about Pocket Planes, the popular game where you play as an air traffic controller and coordinate planes across the world. I loved the review, so I picked up the game and played it. A lot. For a long time. And at one point, I realized that it was more about maintenance than fun, so I was confused. Turns out, that repetitive action in a video game has a name: Grinding.

The Simpsons: Tapped Out is a grinder, that’s for sure — but it is a lot of fun. Come on down and take a trip to Springfield with me, and let’s see what Homer and the gang are up to.

The Premise

It’s a typical day at the Springfield Nuclear Power Plant, and Homer Simpson is playing a game (what appears to be Smurf’s Village) and he complains about all of the stupid in-app purchases and how it’s very slow going. Alarms start flashing behind him, and just like that, the nuclear power plant blows up, leveling Springfield and leaving Homer alone in the middle of a field.

He should probably pay more attention to all those flashing red lights.

He should probably pay more attention to all those flashing red lights.

Your job is to put the town back together again, however you see fit. With each item you place, you gain experience points and cash — and occasionally donuts. The pink-frosted delicacies (mmm … sprinkles) and the money are your currency for the game, so you need as much of both as possible. The further you go, the more people you unlock and the more stuff you can do. But of course, there’s a catch.

Gameplay

Once you’re on the ground and ready to build, you’re walked through a pretty thorough tutorial that knocks out the first few levels quickly. Once that’s done, you’ve probably got four or five characters unlocked, and the next few go along pretty gangbusters from there.

Collect them all!

Collect them all!

The game makes it clear from the beginning that cash buys you stuff, but it’s the donuts that you really want. These serve not only as currency, but they’re also the catch. See, these donuts can speed up time — and you’re going to need a lot of that.

The Time Part

Being a grinder, to gain XP and cash you need to do tasks that take real time. If you want Flanders to earn $3 and 1XP point, you can ask him to Condemn Science, which takes 45 seconds. But if you want to earn $200 and 46XP, he needs to do Emergency Bible Studies. That takes 8 hours.

These are real hours, not just game hours, so if you want those 46XP, then you have to wait 8 long hours. Granted, you don’t have to actively play the entire time, but still.

Oh, I agree.

Oh, I agree.

So to speed up time, your option is to use the donuts you’ve already earned (which isn’t a whole ton), or buy them via IAP. Technically, you don’t need to buy them. But you’re going to want to, and that kind of sucks.

There is a balance here that I’ve found, however. Some tasks that take 24 hours to accomplish don’t earn as much as a task that’s less than half as long would earn if done two or three times. So if you do that shorter task twice, you’ll actually earn more long term.

The Social Aspect

The game also gives you the option to visit your friends’ cities and then steal their stuff. To test this, I setup different accounts on my iPad and iPhone and tried to get them to connect. It didn’t.

You could spend $100 on donuts, but that doesn't seem fiscally responsible.

You could spend $100 on donuts, but that doesn’t seem fiscally responsible.

Although this is supposed to give you a sense of integration with your pals, the problem is that connections were sporadic. I could find my iPhone’s game from my iPad, but the other way around only worked once out of four attempts. Whether it was a network thing on their end or not I really don’t know, but the Wi-Fi signal was strong on my side.

Peripheral Entertainment

When I was playing Pocket Planes, I found myself with my iPad propped up to the left of my keyboard so I could tap the screen occasionally to get something done. That’s exactly how things operated with The Simpsons: Tapped Out. Is it fun? Yes. But since I don’t want to spend a small fortune in IAPs, it’s a waiting game. That can drain on you after time, as it did to me.

But the nice thing about this game is that it’s the Simpsons, not some pixelated characters in an airport. I wanted to add more characters and see how big I could get my city. Sure, I understand that’s where they get you, but I was fine with putting in my time because without using IAP, it doesn’t cost me anything extra.

iPad or iPhone?

In my testing with the app, I put the iPad and iPhone against each other to see which one is more fun. Unfortunately, there’s no syncing that I can tell, so even if I wanted to play the same game on the two devices, I couldn’t. But what I could do is play against each other.

Rush, rush, rush.

Rush, rush, rush.

Overall, this game is much better visually on the iPad. The bigger screen makes it much easier to tap everything you need, plus it’s easier to see the characters (which can get kind of small). Don’t get me wrong, I’d play it on either device. But if I had to choose just one, it’d be the iPad.

Final Thoughts

Grinding games can be a bit annoying, but when you’ve got the right motivation, things become a lot more interesting. The Simpsons: Tapped Out isn’t a perfect game, but with a little bit of strategy and a whole bunch of time, you can do pretty good.

I spent a good few days on the game while doing this review, and I think I’ll probably spend another week or two in Springfield before I leave. I’ll check in every now and again when I remember, but it won’t be the end of the world if I forget. And that’s just fine with me.

ThisLife: Capture and Organize Life Moments in the Cloud

We all love to capture those special moments in our lives and keep them so that we can have them to look at later. The problem with this is that now days most people don’t print their pictures and put them in albums — at least I don’t. We tend to keep most of our precious moments on our hard drive, iPhone, DVD or the cloud and they just sit there. Wouldn’t it be nice if we could organize them so that when our children are older we can actually show them these great times?

Well, ThisLife is trying to be that service where you can capture your life in pictures and video, store them, organize and share with the world now or with close friends later. There are a variety of cloud storage services out there for photos, but most of them just let you store them on their servers. With ThisLife, there is so much more to do than just let them collect “dust” in the cloud.

Getting Started

Before you start to use the app, you need to sign up for an account on their website. The main premise of ThisLife is to upload your photos and videos to their cloud storage and organize them so that they can be shared with others. So when you start to use it on the iPhone, you are going to want to get your media on there so that you can utilize the service. Unfortunately, you need to already have taken a picture or video before you open the app as they don’t let you do that within the app.

Adding pics on ThisLife

Adding pics on ThisLife

Organizing and Sharing

After you have added your media to the app, you can now start to organize them so that you can share those moments with others. When you add anything into the app, they get sent to the Library where you can do a variety of things. The date stamp of the picture automatically gets imported into ThisLife so you don’t have to worry about remembering when the picture was taken, and you can also change the date if need be. They can also be shared out to a handful of social sites such as Facebook, Twitter, Flickr or emailed to people.

Sharing Options

Sharing Options

There is one other feature when it comes to organizing your photos. There is a “heart” button for each picture or video that you have in your library. When you press it, it adds that picture or movie to your timeline, which is a different view where you get to see all the things that you hearted. This is a great way to see all of the important or special times in your life.

Timeline View

Timeline View

Lastly, there is a search function, where you can look for specific media based on people, activities and/or places. This is a great feature to have if you just want to show your friends pictures of a specific event or person. In order to really use this feature to its potential you are going to have to use the web app, then tag people and fill in your activities and places. At this point you cannot do this on the iPhone app, but hopefully this is a feature they decide to add in the future.

Search Function

Search Function

Pricing and Other Apps

ThisLife, the iPhone app is free for you to download, but the service itself is not all free. They have three different plans that you can take advantage of, with them ranging from free all the way up to $14.99/month. With the free plan you can store up to 1,000 photos or up to 1 hr of video, which is a good starter package to have to see if you really like the app. From there you have two other packages that increase the photo amount and video time significantly. For the features they have, I believe that have a pretty good price point.

To take advantage of these features you are really going to want to take a look at ThisLife’s other apps that they have to offer. The main one is the web service where you can do a lot more than it’s iPhone counterpart. There is a Mac uploader for you to upload your media as well as an iPad app, which has similar features to the iPhone.

Conclusion

After using ThisLife, I have to say that I really like the service as a whole and haven’t seen anything like it. The iPhone app could definitely use some work though, and I think there are some cool things on the horizon. I got a few minutes with the co-founder on Twitter and she mentioned to me that the iPhone app is a generation behind the web service and that they were hard at work on adding more features. I would love to see the ability to tag people, add a location and details about the picture. It would also be nice to be able to take a picture or video from within the app instead of just importing them from your photo library.

If you are looking for a service to store, organize and share out your photos and videos, you need to definitely check out ThisLife. Right now they are in beta, so you have to go to their website and sign up, but they are getting people in pretty quick. Our lives have so many great memories that we want to save and share, try using ThisLife to create that digital album so that you can share them with friends and family through the years.