Using the Empty Template in iPad

Xcode offers many templates from which to choose when creating a new application. Sometimes,
though, we want a bit more control over the details of an app than these templates can provide; for this
reason, Xcode also offers an Empty application template. In this blog, we’ll see how to use the Empty
template to build a simple application. So let’s get started!

Start up Xcode and select “Create a new Xcode project.” In the next screen, choose Empty Application,
then click next:

In the following screen, name the project EmptyApp, select the options shown. Note that even though
we are developing here for iPad, the principles involved are the same for iPhone development.

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

The first thing to notice about the Empty application
template is that it provides the AppDelegate class, but
nothing else. We will need to provide our own view
controller and view for the application.

In the menu, select File | New ? then File… In the next
window, choose Objective – C Class, then click Next. In
the window that results, name your new class
MainViewController, make it an instance of
UIViewController, select the checkbox next to “Targeted
for iPad,” and make sure the “With XIB for user interface” check box is unchecked. (We’re going to
create the xib file separately in this case to show how a view is connected to a view controller.) Click
Next. Choose the default location to save the files, and click Create.

Now we’ll create the actual view. Another way to add a new file to the application is to right-click in
the Project Navigator and select New File… from the popup menu. Do so now. In the resulting window,
choose “User Interface” from the list to the left under iOS, then select the Empty document as shown
here:

Click Next, and make sure the Device Family is set to “iPad.” Click Next once again, and in the Save
As text box, enter “MainView.” Click Create to save the file in the default location.

The Project Navigator panel should now appear as shown
here. Note that you may have to drag some files around in the Navigator to properly organize them. Sometimes, Xcode will crash when dragging files – this is a known issue; simply reopen Xcode and continue when this happens.

Select the xib file to open it in Interface Builder. You will see an entirely empty Window. First, select the File’s Owner object. In the Identity Inspector, choose MainViewController for the File’s Owner’s class, as shown below. This will make the MainViewController class the view controller for the view that we will be adding to this xib file.

Next, drag a UIView object from the Library to the
Interface Builder surface. Notice that the UIView
object is properly sized for the iPad device, because
we made the iPad selection in the Device Family
drop down when we created the xib file. Give the
view a nice background color.

Now right-click the File’s Owner object, and drag
from the circle to the right of the “View” item to the view itself. This makes the new UIView object the
MainViewController’s view. At this point, we’re done with Interface Builder (for now).

We need to make this view a subview of the application’s window object, so it can be displayed when
the app runs. Select the AppDelegate.h file, and make the changes shown in bold:

#import <UIKit/UIKit.h>
#import "MainViewController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) MainViewController *mainViewController;
@end

We’ve imported the MainViewController.h file (to obtain access to that object), and also set up a
property of type MainViewController called mainViewController. We will instantiate this object in
the .m file, then add it’s view as a subview of the window object.

Open up the AppDelegate.m file, and once again make the bolded changes. (The listing is on the next
page:)

#import "AppDelegate.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize mainViewController = _mainViewController;
– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
*)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.mainViewController = [[MainViewController alloc] initWithNibName:nil
bundle:nil];
self.window.backgroundColor = [UIColor whiteColor];
[self.window addSubview:self.mainViewController.view];
[self.window makeKeyAndVisible];
return YES;
}.
..

(We’re not showing the entire file, only the portion that requires changes to be made.)

First, we synthesize the property mainViewController. Following Apple’s recommendation, we
synthesize this property with a name different from that given to it earlier, this makes it impossible to
accidentally use it as an ivar: we must access it using its getter and setter methods.

Next we instantiate mainViewController by first allocating space on the heap for an object of class
MainViewController, then calling initWithNibName: bundle: to initialize the object. In this case, we’ve
already wired up the view controller, view, and File’s Owner in Interface Builder: a value of nil for the
nib name will take the values already provided. A value of nil for the bundle parameter signals the
system to take the current application bundle.

Finally, we add the mainViewController’s view as a subview of the main application window. When
this window is made visible, the subview will be displayed on top of it.

Run the application to verify that the view is shown. At this point, the application is ready for
development to proceed along traditional lines.

Comixology hits 65 million downloads, lands exclusive Marvel digital deal

We’ve posted about Comixology’s domination of comic book content on iOS before — it’s certainly not the only app that lets you read and even buy comic books, but it’s by far the most popular, and keeps getting even more so. The company has just announced that it’s reached 65 million downloads across the platform as a whole, which is just a huge amount of content delivered. And Comixology keeps locking down plans to deliver even more — their latest deal is with Marvel, and allows Comixology to exclusively release Marvel’s single issues digitally through the app. That means every single issue English comic that Marvel puts out is available digitally only through Comixology.

This is just one of a few such deals Comixology has worked out to deliver both exclusive and non-exclusive content right through their system. The company has made deals with most of the main comics producers already, so that almost any comic you want is now available in their database, directly via in-app purchase.

There’s clearly a market here — you’d think that maybe Apple would have gone after comic books with iBooks by now, or maybe incorporating them as periodicals in Newsstand. But no. At this point, Comixology is cornering the market on digital comics, and it seems to be paying off handsomely for them.

Comixology hits 65 million downloads, lands exclusive Marvel digital deal originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 14:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Update for May 8, 2012

It’s the TUAW Daily Update, your source for Apple news in a convenient audio format. You’ll get all the top Apple stories of the day in three to five minutes for a quick review of what’s happening in the Apple world.

You can listen to today’s Apple stories by clicking the inline player (requires Flash) or the non-Flash link below. To subscribe to the podcast for daily listening through iTunes, click here.

No Flash? Click here to listen.

Subscribe via RSS

Daily Update for May 8, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 14:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iPhone comes to two more small US carriers

After landing at several smaller US carriers in April, Apple’s iPhone is poised to make another round of expansion into regional markets later this month, according to MacRumors. As of the writing of this post, three wireless carriers, including Bluegrass Cellular of Kentucky, Golden State Cellular of California and Nex-Tech Wireless of Kansas, will start selling the iPhone 4S on May 18.

These regional operators will offer the iPhone for US$50 off Apple’s retail price with the 16 GB model selling for US$149, the 32 GB for $249 and the 64 GB for $349. The trio will also sell the iPhone 4 for $49. All prices require a two-year customer agreement.

iPhone comes to two more small US carriers originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 14:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple and IKEA, two similar retail stories

There’s a fascinating writeup over at Asymco about Apple’s retail strategy as compared with another very popular retail chain: IKEA. On the surface, the two brands seem dissimilar. One is a popular computer maker turned mobile device innovator, while the other is a simple and low-cost furniture maker from Sweden. But when you look at the retail scale and strategy of both companies, the similarities become apparent. Both go for high profit margins and striking design decisions, and both brands go from design to factory to retail in one big all-in-one solution.

It turns out the sales growths are similar too, with a few important differences. IKEA stores are obviously much bigger than Apple Stores, more than 30 times the size. And Apple, because it sells such expensive items, is able to claim a much higher dollars-spent-per-visitor figure, way higher than IKEA’s US$27 per visitor to its stores.

But on the other hand, IKEA’s sales are solid, stable, and well-earned. Furniture is not a market known for big sweeping changes or volatile pricing. Apple, on the other hand, has earned its standing relatively quickly. While its products are certainly awesome, there’s always a chance another company could come along with some big innovations and steal those sales away. There’s a lot to be learned in the similarities and differences between these two companies — both have put together very successful strategies for retail, but done so in very different ways.

Apple and IKEA, two similar retail stories originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 13:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Get LostWinds for iOS for free at Starbucks

Starbucks has a deal going on this week to give away a free iOS game to anyone who walks into one of their stores. Usually, the famous (and ubiquitous) coffee chain gives away a song on iTunes, but every once in a while, apps get picked as giveaways, too. This week, its giveaway is LostWinds for iOS, a solid platformer that originally made its debut on the Wii.

To get the game, usually US$3.99, for free, just stop by a Starbucks and grab a “Pick of the Week” card. There’s a code on the back for the free game. I assume these are first-come, first-served, so they might be gone already, depending on how busy your local store is. But Starbucks usually has plenty of these around from week to week. Next time you hit a Starbucks to grab a latte, see if you can’t get LostWinds for free as well.

Get LostWinds for iOS for free at Starbucks originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 13:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple retail stores still crowded at 8400 average square feet

Image

When the first Apple Store opened 11 years ago, Apple felt that 6,000-square-foot stores were the perfect size. Apple’s fiscal 2011 10-K report showed that the average size of an Apple Store has creeped up to 8,400 square feet per store, but Needham & Company analyst Charlie Wolf says that the retail stores are “bulging at the seams” and just aren’t big enough.

As reported by AppleInsider, Wolf says that the number of visitors per store has grown at a 15.3 percent annual rate. Apple is responding by moving some stores to larger locations. In New York City’s SoHo neighborhood, for example, Apple is expanding its store — requiring a US$1.4 million investment in a temporary store to serve customers during construction.

The same thing is happening on the West Coast. Apple’s Palo Alto store is being replaced by a new 15,030-square-foot “prototype” store that may serve to test new store designs. That store is literally within spitting distance of the original store.

Megastores are also being built in a number of locations. The 30,000-square-foot store in London’s Covent Garden, the 16,000-square-foot Pudong store in Shanghai, and the 20,000-square-foot Grand Central Terminal store in New York City are all examples of these flagship facilities that are designed to handle the huge crowds that gather to daily buy Apple gear.

Apple retail stores still crowded at 8400 average square feet originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 13:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iCloud to debut notifications? TUAW confirms mystery iCloud feature

Sharp eyed TUAW reader Michael Roberts noticed something intriguing when he logged into iCloud today. What seems to be a notification pop-up appeared at the top of the iCloud.com webpage. Several TUAW staffers confirmed this behavior.

Currently using stand-in values (“Default Title” for “English” and “English – This is test message description” [sic]), it looks like Apple is getting ready to introduce some hot new integration into their web services.

iCloud to debut notifications? TUAW confirms mystery iCloud feature originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 12:45:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments

AT&T considers “Family Plans” for wireless data

During an interview with CNET, AT&T’s mobile business CEO Ralph de la Vega revealed the company would soon introduce a family data plan. This would allow customers to buy a sharable data bucket, letting that purchased bandwidth be used across multiple devices.

de la Vega told CNET that he was “very comfortable” with the plan being developed and that he knew how the plan would be structured. He did not offer any details on pricing, timing, or bucket sizes.

Verizon is expected to offer a family data plan soon, possibly this summer.

[via The Mac Observer]

AT&T considers “Family Plans” for wireless data originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 12:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple climbs to 17 on Fortune 500 list

Image

Fortune released the Fortune 500 list for 2012, and Apple is now in the top 20 of the list of the largest U.S. corporations in the #17 spot. That’s a vast improvement from last year’s ranking at 35.

Apple has a way to go to get into the top five, which is populated by such famous names as Exxon Mobil, Wal-mart Stores, Chevron, ConocoPhillips, and General Motors. HP was the top tech business in the list at #10, while perennial Fortune 500 place sitter IBM came in behind Apple in the #19 spot. Somewhere, Steve Jobs must be smiling…

In Fortune’s industry grouping for “Computers, Office Equipment”, HP took the top spot, Apple the second place, and Dell, Xerox, NCR and Pitney Bowes followed the leaders. In case you’re wondering where old arch-rivals Microsoft and Dell showed up, they were at spots 37 and 44 respectively. Intel was out of the top 50 in spot number 51, and Google followed the pack in the #73 spot.

Apple climbs to 17 on Fortune 500 list originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 12:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

You’re the Pundit: Could Apple introduce iBooks Author print-on-demand?

When it comes to evaluating the next big thing, we turn to our secret weapon: the TUAW braintrust. We put the question to you and let you have your go at it. Today’s topic is print-on-demand.

Everybody’s doing it. Amazon does it. Lulu does it. Even Apple does it — so long as what you’re printing is a photo book.

So why haven’t we heard a peep about iBooks Author (iBA) print-on-demand? Wouldn’t it be nearly as easy to produce an iBA project as a photo one? So what’s the hold up?

We think that iBooks Author offers a perfect opportunity for Apple to extend its already excellent POD services to a new group of customers. They could easily extend their current meant-for-iBooks templates to a variety of more printer-friendly options.

Sure they’d have to change the pricing model, add more pages, allow black & white printing, and implement other changes that reflected the difference between heirloom photo collections and a standard print book. We get that, along with the big set-up overhead that would be involved. But think of how awesome it might be.

So why have we heard not a whispered rumor? Is this a no-go area for Apple?

You tell us. Place your vote in this poll and then join in the comments with all your analysis.

View Poll

You’re the Pundit: Could Apple introduce iBooks Author print-on-demand? originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 12:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple’s "1944" filmmaker describes the production

Last week, footage of an internal Apple sales video, titled 1944, landed on YouTube. The most notable part of the production was a cameo by Steve Jobs, who was impersonating FDR in the mock war film. One of the creative talents behind the video, Michael Markman, tells the back story about how the film came to be.

It’s an interesting tale about a moment of brilliance that started off as a routine meeting with Apple’s Marketing Director, Mike Murray, and quickly turned into a face-to-face with Steve Jobs. You can read all the details on Markman’s blog and watch the video on YouTube.

Apple’s “1944” filmmaker describes the production originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 11:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

China Telecom launches iPhone promo to boost corporate sales

China Telecom posted disappointing quarterly earnings for Q1 2012 and is turning to the iPhone to help it turn things around. According to Hong Kong’s The Standard, the wireless carrier is launching an iPhone promotion to encourage businesses to sign up with China Telecom. Any business that buys 10 iPhone 4S handsets together with a wireless service plan will get a free iPhone. According to a company spokesperson, the carrier is targeting enterprise customers who are outfitting their employees with the latest technology.

China Telecom launches iPhone promo to boost corporate sales originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 11:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Personal Capital announces iPhone app, Universal Checkbook

One of the major issues with financial services apps these days is that there are way too many of them. Every different bank or investment firm seems to have at least one app; many have multiple apps required to access different accounts thanks to the outdated systems behind those accounts. Today, Personal Capital announced a free iPhone app that brings together all of those accounts into one app, and also lets users move money easily or pay bills from any account.

Yesterday, I had the privilege of watching a demo of the Personal Capital app presented by Bill Harris (CEO of Personal Capital, ex-CEO of Intuit and PayPal) and Jim Del Favero, VP of Software Product Management and also a veteran of Intuit. It’s obvious that Personal Capital had looked at all of the personal finance applications on the market at this time, because its new app manages to avoid all of the pitfalls inherent in the others.

Harris noted that when most people launch a personal finance app, they want to see their balances. However, most other apps require you to navigate to another screen to look at balances. Not so with Personal Capital; the first screen you see after logging in (shown above right) lists the current balances for all of your accounts, whether savings, checking, credit or debit cards, or investments.

Navigating the app is also a pleasant surprise. While most personal finance apps I’ve used are a nightmare to move within, Personal Capital made it possible to dive deeper into each account with a single tap. Harris mentioned that most of the app can be navigated by just using a thumb — something that’s unheard of in most iPhone apps.

For each account, there’s a ring-like feature with segments marking off the relative amount of money assigned to different categories. Within that ring is a small line graph indicating the balance of the account over time. Tap the graph, and you see individual transactions. It’s an intuitive and quick way to navigate through the history of transactions for an account.

Personal Capital also announced a new feature in the iPhone app that is not part of their iPad app — the Universal Checkbook. This feature makes it simple to pay literally anyone from any account with a few taps. Adding a checking account to Personal Capital is also quite simple — you just take a picture of a blank check and the account is added. That’s it. No typing of account numbers required.

If you wish to try Personal Capital, the service is free for the basic functions. If you decide that you’d like personalized portfolio management, they charge less than a 1 percent fee for the privilege. That’s one other amazing feature of the app, by the way. If you want to contact your finance advisor at Personal Capital, you can tap a button and send them a message, make a direct call, schedule a time for a call, or call them via FaceTime.

Expect to see a more complete review of the app in the near future.

Show full PR text
Remote Control for Your Money
Personal Capital Launches Free iPhone App

SAN FRANCISCO, CA – May 8, 2012. How can you manage your money when you’re not at home? Personal Capital’s new iPhone app gives you complete control across all your accounts at all your financial institutions:

o. Check Balances – Check current balances and recent transactions on all of your bank, credit card and brokerage accounts.
o. Monitor Cash Flow – Monitor your total income and spending, with quick comparisons to prior months.
o. Track Investments – Track and understand your entire investment portfolio across all your accounts – including IRAs, 401(k)s and 529s.
o. Move Money – Move money anywhere – from any account to any person, any biller or any other account.

“You’ve got a remote control for your television. You need a remote control for your money!” said Bill Harris, CEO of Personal Capital.

“There are good reasons to put your money in many different accounts – most people do. But to take control of your money, you want to view everything in one place, and do everything in one place. View and do.”

o. View – See everything – from your total net worth to your most recent credit card purchase – on your iPhone.
o. Do – Move your money from anywhere to anywhere. It’s remarkably easy, with just three taps on your iPhone:

1. FROM
2. TO
3. AMOUNT

It’s like having instant electronic access to the checkbooks for every one of your accounts. You tell us “from, to, amount”, and we take care of the rest.

###

About Personal Capital

Developed by a team of high-tech and finance veterans, Personal Capital combines technology with personal service to create an entirely new way to manage your money – all of your money, at all your banks and brokers. Our free service effortlessly gathers all your financial data in one place, and helps you take control of your financial life. To learn more, please call 855-855-8005 or visit PersonalCapital.com.

Personal Capital announces iPhone app, Universal Checkbook originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 11:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

TwitPic launches app, way too late

TwitPic, which was the first photo sharing service for Twitter (and probably the most popular for a while, at least until competing services like Instagram stepped up) has finally released an iPhone app. It’s ill-timed to say the least, considering that Twitter now has an official service (built into the official app and Apple’s iOS), and several third-party apps hook into TwitPic.

But if you remain a big TwitPic user, the free app is probably worth grabbing. You can manage and upload your own photos and videos, and browse others’ content as well. It may be a little late, but for those still making use of TwitPic’s service, this app should come in handy.

TwitPic launches app, way too late originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 08 May 2012 10:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments