AT&T launches LTE in 10 new markets

AT&T knows that LTE connectivity on the iPhone 5 is a tremendous draw for customers, and the carrier is rolling out its 4G mobile broadband service to new markets at a feverish pace. AT&T announced this week that it is turning on LTE in the following ten locations:

  • Birmingham, Ala.
  • Cincinnati, Ohio
  • Fayetteville, N.C.
  • Honolulu, Hawaii
  • Memphis, Tenn.
  • Pittsburgh, Penn.
  • Philadelphia, Pa.
  • Sacramento, Calif.
  • Seattle, Wash.
  • Wilmington, Dele.

AT&T launched LTE in nine markets last week and is on schedule to flip the switch in 34 new markets by the end of the year. With this latest rollout, AT&T’s LTE coverage now extends to 66 markets and over 74 million people.

[Via AppleInsider]

AT&T launches LTE in 10 new markets originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 13:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple says it will stop ebook price fixing in Europe

In a move that looks hopeful for the American market, Apple has vowed to stop fixing ebook prices in Europe, Macworld reports. As part of the agreement, Apple will terminate the agency-pricing agreements with the five companies involved in the European antitrust suit: Hachette Livre, Harper Collins, Simon & Schuster, Penguin and MacMillan. Apple first offered to settle in April.

As part of the settlement, Apple said it will allow retailers to set ebook prices in European markets for two years.

Despite a partial deal being reached in the U.S., Apple is still part of the ongoing antitrust suit here.

Apple says it will stop ebook price fixing in Europe originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 12:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Deals for September 20, 2012

It’s time to save some of that hard-earned cash with our Daily Deals, featuring a handy list from Dealnews and our own hand-picked selections. Today, we’ve got a some iPhone 5 cases in the mix and, as always, some sweet deals on iOS and OS X software.

Hardware and Accessories

  • HandHeldItems: [iPhone Cases] iPhone 5 Cases with $1 credit at HandHeldItems from $1 + $3 s&h.
  • Kodak: [Camera Accessories] Kodak Camera Accessories: 70% off, deals from $1 + $7 s&h.
  • HandHeldItems: [iPhone Cases] iPhone 5 Cases at HandHeldItems: 20% off, deals from $3 + free shipping.
  • eBay: [Rechargeable Batteries] 4 Kodak Rechargeable NiMH AA Batteries for $5 + free shipping.
  • PricePlunge.com: [iPad Accessories] Targus Gaming Pack for iPad and Tablets for $5 + $3 s&h.
  • BuyDig: [SSDs] OCZ 512GB Agility 4 2.5″ SATA 6Gbps SSD, Upgrade Kit for $289 + free shipping.
  • DealGenius: [Standard Batteries] 30 Duracell AA Batteries w/ 10 Duracell AAA Batteries for $13 + free shipping.
  • Best Buy: [USB Flash Drives] SanDisk Action Sport 8GB USB Flash Drives for $8 + free shipping.
  • HandHeldItems: [iPhone Accessories] HHI Sports Armband for Apple iPhone 5 w/ $1 credit for $5 + $3 s&h.

iOS Software

OS X Software

  • Humble Indie Bundle: [Mac Software] Six cross-platform games, you set the price.
  • StackSocial: [Mac Software] The “Name Your Own Price” 6-App Bundle for Mac downloads for $1. It includes Sparkbox, iClip, iDocument, MacCleanse 3, Jaksta Music Converter, and skEdit.
  • Ondesoft: [Mac Software] Ondesoft Audiobook Converter for Mac downloads for $15
  • File Recorder: [Mac Software] Now free, down from $9.99.
  • Quickipedia: [Mac Software] Now free, down from $1.99.
  • MacHeist 4: [Mac Software] MacHeist 4 is now live. Jump into Mission 1 and score a free version of Calendar Plus as you work your way towards the final software bundle.

Daily Deals for September 20, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 11:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Safari exploit used to gain control of iPhone at Pwn2Own

A team of Dutch researchers used a WebKit vulnerability in Mobile Safari to gain access to a fully patched iPhone 4S during a recent mobile Pwn2Own challenge. The attack circumvented Apple’s code-signing requirements and grabbed the entire address book, photo and video database and web browsing history. It could not download SMS or emails from the device because those databases were not accessible and also encrypted.

Though it was executed against an iPhone 4S with iOS 5, the vulnerability is also present in iOS 6. The Dutch team, led by Joost Pol of Certified Secure and colleague Daan Keuper, tested the exploit in the gold master version of iOS 6. They also confirmed it worked on all previous versions of the iPhone, iPad and iPod touch. Unless an update to iOS 6 happens before launch day, it will also be possible on an iPhone 5.

From detection to completed code, the exploit took about three weeks to develop and refine. You can read more about the exploit and Dutch research team on ZDnet’s website.

Safari exploit used to gain control of iPhone at Pwn2Own originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 11:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Passbook is failing to live up to expectations

Passbook is what I’ve been most eager to try iOS 6. My husband teases me about poking through a wallet full of cards for different locations, and one of my favorite apps is the Starbucks app, which allows me to use my iPhone to pay for my drinks. Passbook was billed as the iPhone’s digital wallet, which can be used to store boarding passes, movie tickets, coupons, store loyalty cards, etc. all into a single place.

Nice idea. Too bad the execution’s not going very well.

The first issue for a lot of people is that upon launching the app, there is an error message that does not allow you to connect to the Passbook-specific part of the App Store. Thanks to the Apple support forums, there is a fix for that. Follow the following steps:

  1. Go into Settings > General > Date and Time > Set Automatically. Turn that setting off.
  2. Set the date one year ahead
  3. Access Passbook again and go into the App Store from it. It should be working. Then you can go turn the “set automatically” setting back on in Date and Time.

It doesn’t get better from there. Despite prominent billing during the iOS 6 announcement in June, Starbucks isn’t a part of Passbook yet. So, I downloaded the Target, Walgreens and United Airlines apps. Instead of populating Passbook, they showed up on my home screen instead. That didn’t seem right.

It’s not, said fellow TUAW editor Dave Caolo. “You must first use a Passbook-enabled app in order to have it show up,” he said. So, you can install an app, but it won’t appear in Passbook unless you use the associated iOS app. That kind of defeats the purpose of it, doesn’t it? You shouldn’t need to buy a movie ticket, planet ticket, etc. in order to get an app to work properly, especially a marquee feature of iOS 6.

Passbook is failing to live up to expectations

I did get it to work with the Walgreens app since its Balance Rewards card is free. When you select the store from the App Store, it will automatically download that app to your phone. A screen appears when you first launch the app, letting you know that it’s Passbook-compatible. If you don’t have an account, you can sign up for it through the app. Once you’re done, you can choose to add the loyalty card to Passbook.

So, what do you do with those extra apps you suddenly have? If you delete them, will it remove the Passbook entry? I deleted the Walgreens app, and the loyalty card remained in the Passbook.

Eventually, I got the Target app to work. If you’re signing up for an account for the first time, you’ll go through a lovely rigamarole involving creating an account, then resetting your password. Then, you can activate mobile coupons. After confirming via text message, the coupons will appear in the app and you can add them to Passbook by scrolling to the bottom of the coupon screen, then delete the Target app if you don’t want to keep it.

Passbook is failing to live up to expectations

When an item is in Passbook, you can tap on the “i” symbol in the bottom right-hand corner to find out more information. You can see if the associated app is installed — useful for if you’ve tossed it in a folder — and in the case of the Target coupons, what the coupon is good for. The cards are set to update automatically, so it’ll be interesting if the Target one does next week since I deleted the app.

It shouldn’t be this complicated. At the very least, it should work like CardStar or Key Ring Rewards Card, where you can add a loyalty card or service without having to download the associated app. If you still want the standalone app, you can install it beyond that by using the link from Passbook. It took a good 30 minutes of configuring separate apps, including setting up accounts, in order to get passes into the Passbook for the first time.

And then there’s actually using Passbook. TechCrunch’s Darryl Etherington tested it at the movies, and the experience was just as stellar (note the sarcasm) as setting up Passbook for the first time. Since then, the Cineplex app has received an update that fixed his problem, but he deemed that the whole Passbook process is just needlessly complicated.

I agree with Darryl. Passbook is not intuitive and not ready for the real world. If you can actually get passes into Passbook, it should great if the business is ready to support it. It’s getting to that point that’s going to turn away a lot of users.

Passbook is failing to live up to expectations originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 10:20:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Fix iOS 6 App Store connectivity with Date and Time trick

Fix iOS 6 App Store connectivity with Date and Time trickHave you been getting connection errors in the iOS 6 App Store? You’re not alone. I’ve also be getting the error message at right since updating to iOS 6. Fortunately, there’s a quick fix.

Apple Discussion Board user CLwill posted a hint that worked for me:

“Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to update the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try to update the apps again.”

Not only did this correct the connectivity issue, it has allowed me to browse the list of available Passbook-compatibile apps. Several MacRumors users also report that the fix solved the issue for them.

Finally, I noticed that, after changing the date, the row of icons at the bottom of the iOS 6 App Store have changed from “Features,” “Categories,” “Top 25,” “Search” and “Updates” to “Featured,” “Charts,” “Genius,” “Search” and “Updates.”

Fix iOS 6 App Store connectivity with Date and Time trick originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 09:05:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Skitch 2.0 is like Skitch 1.0 without all those pesky "features"

I knew that when Evernote purchased Skitch they were destined to screw it up.

Sure enough, it didn’t take long.

First they started pushing people to use Evernote accounts. Skitch had done this too, insisting that you keep a Skitch.com account in your “sharing” options, even if you had no interest in actually using Skitch.com.

For a while, Skitch.app would actually create an Evernote and a Skitch entry in the Share preferences, and every time you deleted them, Skitch would come right back and re-create them. Because why should users get to decide what to do with software they install on their own computers?


*Clearly* Evernote knows best.

First they shut down Skitch.com…

Well, that wasn’t enough for the fine folks at Evernote. One of the things I liked best about Skitch was the ability to share images though my own server. Why? Because companies like Skitch have a habit of going bankrupt, either financially or morally.

Sure enough, Evernote decided once again that they know what’s best for you, and so they announced (in an email to customers):

Sharing in Skitch will go through the Evernote Service, which means that you will be able to access your Skitch notes on any computer, phone, or tablet you use.

What Evernote wants to sell you is the idea that it’s better to use Evernote for sharing your images because then you can access them anywhere.

Of course, “that’s a bunch of horse hooey,” as we say out here in farm country.

You could access your images from your computer, phone or tablet if they were on an SFTP/FTP site. Evernote just doesn’t want you doing it that way. They want you to do it through Evernote, which will give them more control and (one assumes) the ability to display ads around your content. Because who wouldn’t want that?

As of October 10, 2012, the Skitch.com website will be archived. You will no longer be able to sign into Skitch.com as of that date.

OK, fine, I understand that they have their own web service and they don’t want to manage two of them. I guess we all should have seen the writing on the wall there.

How This Affects You

Your public and secret images will remain accessible and the links to these will not change.

Wow, that’s decent of them.

If you have private images, then you will no longer be able to access them after October 10, 2012. You can easily download all of your private images to your computer using the link below. Once downloaded, we recommend adding them to your Evernote account so that they’re easy for you to access any time.

Wow, that’s not decent of them.

Look, I understand not wanting to let people add content to Skitch.com. If they want to upload content to a server that isn’t in their control, well, hey, these are the chances that you take.

But if they are keeping the “public” and “secret” images, why not keep the private images too?

Well, the answer is that they don’t want to, and they don’t have to. After all, it’s a free service — even though there are people, like myself, who paid Skitch to be able to use all of the features of the software back when they used a “freemium” (gross) model.

OK, well, at least I can still save my own images to my own server.

Oh wait, no I can’t.

Earlier today Evernote pushed Skitch version 2.0. They’re getting heavy rotation in the Mac App Store, even being featured as an “Editors’ Choice” app. (Gee, why would you release a new version of your app the same day as a new version of iOS and right before the new iPhones come out? Could it be that you knew these changes were going to go over like a leaky-leaky-bean-burrito-with-extra-chili-fart in church? I’m probably being cynical. It was probably just a coincidence.)

Whatever the reason, users aren’t nearly as excited as the Mac App Store’s Editors. Reviews are overwhelmingly negative, and not just in the usual “CHANGE BAD!” reaction you might expect, but an entire list of features which have been simply removed and changes which make the app more difficult to use.

Here are some highly rated comments on the new version:

“I can’t run it in the background anymore. There’s no icon in the menu bar. There’s no global shortcut key. There’s no automatic copy link to clipboard. Why do I want to use this thing again? You’ve taken away all the features that made me a Skitch user.”

“I loved Skitch and used it all the time. I downloaded this new version today and it’s a huge step backwards. Now I’m forced to have Skitch in my dock? You took away the ability to have it run in the menu bar? No FTP options? No thanks. What’s really sad is that I actually paid for Skitch back when the app store was selling it. It’s a sad day indeed.”

“Downloader beware! This changes Skitch substantially. No more menu bar functionality. Forced use of dock icon. New clunky interface. I Time Machine’d this back to the better (older) version. Make sure you have a back-up, or better yet, skip this [version] all together.”

There are 145 reviews for this version; 105 of them are one star.

Ouch.

My “favorite” new “feature” of Skitch 2.0: good news! Now you won’t have to worry about setting up your own S/FTP accounts on Skitch. Because you can’t.

See, when Evernote said “Sharing in Skitch will go through the Evernote Service” it might have sounded like they were just saying that they are closing down Skitch.com, but what they apparently what they meant was “Sharing will go through Evernote because all of your other options are being taken away.“

Stop the App Store upgrade prompt

Fortunately I saved my copy of Skitch (version 1.0.12) after hearing Daniel Jalkut (developer at Red Sweater Software best known for MarsEdit and FastScripts) mention that a brief stint with Skitch 2.0 had sent him back to Skitch version 1.

The only problem is that the Mac App Store app kept telling me that Skitch needs to be updated. I even went into my Purchases list and ‘”hid” Skitch, but still the App Store kept telling me that it wanted to update Skitch.

I seem to have found a solution, which was to quit Skitch.app, and then locate the app in /Applications/ using the Finder. Once there, I control-clicked on the app and chose “Show Package Contents”:

And then open the ‘Contents’ folder, and I found a folder named _MASReceipt:

I moved that folder to the trash, and now the Mac App Store no longer prompts me to update the app.

As far as I can tell, the app continues to function just fine without the _MASReceipt folder.

N.B. Terminal nerds like myself will prefer to use something like:

sudo rm -rfv /Applications/Skitch.app/Contents/_MASReceipt

Version 1.07 is still available

You can still download version 1.07 from Skitch.com. I believe that version 1.07 was the last version before it went “Mac App Store only.” The changelog for versions after 1.07 make it appear that the only bugs they were fixing were about Evernote integration.

Note that version 1.07 still requires that you have a Skitch.com account in the “Sharing” options, or else it will just automatically re-create it anyway.

One wonders what the app will do once the Skitch servers are no longer accessible, since the app refuses to even function without one.

The future of Skitch

I certainly hope that the folks at Evernote reconsider their decision to remove every method of sharing that isn’t based through Evernote.com.

But I’m not counting on it.

In fact, I think this is their vision for the app: it will be a way to push content directly at their service.

I’m sure that sounds great if you work for Evernote, but it’s pretty terrible for users.

I guess it’s time to start looking for a new quick image/screenshot editor. I liked Skitch not because it was a great app, but it was sufficient for what I needed most of the time. Hopefully somewhere out there is a developer who understands and will take advantage of this opportunity to give users back what they have lost with Skitch 2.

Skitch 2.0 is like Skitch 1.0 without all those pesky “features” originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 08:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Maps missing info dismays some iOS 6 users

Maps gaps dismay some iOS 6 users

Detail differences between Apple’s new maps (top) and Google maps (bottom) have some iOS 6 users scratching their heads and wondering how long Apple will take to bring their Maps database up to speed. Developer Mathieu Roy shared the above maps, which highlight how the newly Apple-sourced versions still have plenty of growing room.

Developer Jeremy Tregunna adds “That map isn’t so bad; the entire city of Escazú in San José, Costa Rica, is missing, and it’s misspelled ‘Escaza.'”

Satisified with Maps? Or disappointed by Maps gaps? How has your iOS 6 transition been going?

Update: Rich Gaywood points to this iOS 6 Maps Tumblr.

Update: The Guardian reports, “Within minutes of the launch of the iOS6 operating system, which comes preloaded with Apple Maps, users were reporting that Paddington station had vanished, London had been relocated to Ontario, the Sears Tower in Chicago had shrunk, and Helsinki railway station had been turned into a park.”

Update: Reggie sends us this composite image. A picture is worth a thousand words.

Maps missing info dismays some iOS 6 users originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 20 Sep 2012 06:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple releases Mountain Lion 10.8.2 update with Facebook integration!

If you checked the software updates released earlier today you will have noticed that Apple has just released 10.8.2 through Software Update.

The biggest update that 10.8.2 brings with it is Facebook integration which means that with a single sign on you receive Facebook sharing options for links and photos, and Facebook notifications in Notification Center.

Apple also released OS X 10.7.5 today for OS X Lion users, which includes Gatekeeper and a number of fixes for Launchpad, Wi-Fi, and Spotlight.

Direct downloads available through Apple’s site include:

– OS X Mountain Lion Update v10.8.2 (665.48 MB)
– OS X Mountain Lion Update v10.8.2 (Combo) (665.39 MB)

A list of what is included in 10.8.2 is below via Apple’s full release notes:

This update is recommended for all OS X Mountain Lion users, and includes new features and fixes:

 

Facebook

  • Single sign on for Facebook
  • Adds Facebook as an option when sharing links and photos
  • See Facebook friends’ contact information and profile pictures in Contacts
  • Facebook notifications now appear in Notification Center

Game Center

  • Share scores to Facebook, Twitter, Mail, or Messages
  • Facebook friends are included in Game Center friend recommendations
  • Added Facebook “Like” button for games
  • Challenge friends to beat your score or achievement

Other new features

  • Adds Power Nap support for MacBook Air (Late 2010)
  • iMessages sent to your phone number now appear in Messages on your Mac*
  • You can now add passes to Passbook (on your iPhone or iPod touch) from Safari and Mail on your Mac*
  • FaceTime can now receive calls sent to your phone number*
  • New shared Reminders lists
  • New sort options allow you to sort notes by title, the date you edited them, and when you created them
  • Dictation now supports additional languages: Mandarin, Cantonese, Spanish, Korean, Canadian English, Canadian French, and Italian
  • Dictionary app now includes a French definition dictionary
  • Sina Weibo profile photos can now be added to Contacts

* Requires iOS 6


General fixes

The OS X Mountain Lion v10.8.2 update also includes general operating system fixes that improve the stability, compatibility and security of your Mac, including the following fixes:

  • Adds an option to discard the changes in the original document when choosing Save As
  • Unsent drafts are now opened automatically when launching Mail
  • Receive Twitter notifications for mentions and replies from anyone
  • URLs are shortened when sending tweets from Notification Center
  • Notifications are disabled when AirPlay Mirroring is being used
  • Adds SSL support for Google searches from the Smart Search Field in Safari
  • Adds a new preference to have Safari launch with previously open webpages
  • Resolves an issue that may cause the “Enable Autodiscover” checkbox to always remain checked
  • Enables access to the Mac App Store when Parental Controls are enabled
  • Support for @icloud.com email addresses
  • Resolves a video issue with some VGA projectors when connected to certain Mac notebooks
  • Addresses an issue that may prevent Active Directory accounts from being locked out
  • Resolves an issue that may cause the policy banner to re-appear prior to logging in
  • Improvements to SMB
  • Addresses an issue with NIS users when auto-login is enabled
  • Addresses an issue in which the Keychain may not be accessible
  • Ability to pre-authenticate a FileVault protected system
  • Addresses an issue that may cause Xsan to not automatically start after migrating from Mac OS X Snow Leopard

For information about the security content of this update, please visit this website.

Tutorial: How To Create An iOS 6 UICollectionView Using Storyboards

There have been a number of open source grid view components and Apple decided to create their own grid view class UICollectionView.

Currently there is no template in Xcode for collection view apps so Ash Furrow decided to create a tutorial demonstrating how to set things up.

In the tutorial you’ll learn how to work with Apple’s new grid view class UICollectionView by setting up the  layout using storyboards, and fill the view with images downloaded online.

Here’s an image from the tutorial showing the finished project:

You can find the UICollectionView tutorial here.  The example project can be found on Github here.

Ash has also released an example demonstrating how to use NSFetchedResultsController with UICollectionView that can be found on Github here.

This the first tutorial listing added to the new iOS 6 SDK tutorial page (or at least will be soon after this post is published).

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Tutorial: How To Create An iOS 6 UICollectionView Using Storyboards

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


A TableView based menu for iPad

Menuing in iPad is typically handled through the use of popovers. But it is also possible to use separate table views in conjunction with button bar items to develop a menu for an iPad app. Let’s see how to do it!

Start Xcode, select “Create a new Xcode project,” and choose the Empty Application template. Name your project “TVMenu,” and choose options as shown:

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

We must now add a view controller to serve as our application’s view controller. From the menu, choose File | New… File as shown here:

Make the file a subclass of UIViewController and name it MainViewController. Make sure that both the “Targeted for iPad” and “With XIB for user interface” boxes are checked:

Click Next and Create the file in the default location.

Now that we have a view controller, let’s add it to the AppDelegate so it will be displayed inside a navigation controller in the main window. Open AppDelegate.h and adjust it:

#import <UIKit/UIKit.h>
#import "MainViewController.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) MainViewController *rootVC;
@property (strong, nonatomic) UINavigationController *navController;

@end

Now open AppDelegate.m, synthesize the properties, and make the following changes to the application:

didFinishLaunchingWithOptions: method:

#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;
@synthesize rootVC = _rootVC;
@synthesize navController = _navController;

– (BOOL)application:(UIApplication *)application
              didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
   
    self.rootVC = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil];
    self.rootVC.title = @"Menu Test";
    self.navController = [[UINavigationController alloc] initWithRootViewController:self.rootVC];
   
    [self.window addSubview:self.navController.view];
    [self.window makeKeyAndVisible];
    return YES;
}

After creating the window, the rootVC property is instantiated using the nib file we created earlier. The title is set to “Menu Test,” and the rootVC is added as the root view controller of a UINavigationController named navController. Finally, the nav controller’s view is added as a subview of the main window.

We must now make some changes to the xib file. Open MainViewController.xib.

(the lower left corner of the interface is shown above). Drag a ToolBar to the bottom of the view. Change the first button’s text to File, add a second UIBarButtonItem to the toolbar and title it “Edit.” Now drag two UITableViews to the interface, and resize them as shown. Set them both to “hidden.” Also drag out a UILabel control to the view, change the text size to 40, justify the text to the center of the label, and resize it so that it takes up the full width of the interface:

Place the label somewhere near the vertical center of the view. Finally, set the main view’s background color to a color of your choosing.

Open up MainViewController.h and make these changes:

#import <UIKit/UIKit.h>

@interface MainViewController : UIViewController
<UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, weak) IBOutlet UITableView *fileMenu;
@property (nonatomic, strong) NSArray *fileMenuItems;
@property (nonatomic, weak) IBOutlet UITableView *editMenu;
@property (nonatomic, strong) NSArray *editMenuItems;
@property (nonatomic, weak) IBOutlet UILabel *selectionDisplay;

– (IBAction)fileMenuButtonTouched:(UIBarButtonItem *)sender;
– (IBAction)editMenuButtonTouched:(UIBarButtonItem *)sender;

@end

We’ve made this view controller adopt the UITableViewDelegate and UITableViewDataSource protocols, because it must populate the table views and respond to touches on them. Note that we have three outlets (fileMenu, editMenu, and selectionDisplay). FileMenu and editMenu will be wired to the table views, and selectionDisplay will be wired to the label. We’ve also defined two action methods, to be fired when the toolbar buttons are touched.

Return to the nib file (MainViewController.xib) and wire up the controls to their outlets and actions. Also, wire up the datasource and delegate of both table views to File’s Owner.

Now open MainViewController.m and make these changes:

#import "MainViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

@synthesize fileMenu, editMenu;
@synthesize fileMenuItems, editMenuItems;
@synthesize selectionDisplay;

– (IBAction)fileMenuButtonTouched:(UIBarButtonItem *)sender
{
    if (self.fileMenu.hidden == YES) {
        self.fileMenu.hidden = NO;
        self.editMenu.hidden = YES;
        self.selectionDisplay.text = @"File Menu Selected";
    } else {
        self.fileMenu.hidden = YES;
        self.selectionDisplay.text = @"";
    }
}

– (IBAction)editMenuButtonTouched:(UIBarButtonItem *)sender
{
    if (self.editMenu.hidden == YES) {
        self.editMenu.hidden = NO;
        self.fileMenu.hidden = YES;
        self.selectionDisplay.text = @"Edit Menu Selected";
    } else {
        self.editMenu.hidden = YES;
        self.selectionDisplay.text = @"";
    }

}

– (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.fileMenuItems = [[NSArray alloc] initWithObjects:@"new", @"open", @"save", @"saveAs…", @"exit", nil];
        self.editMenuItems = [[NSArray alloc] initWithObjects:@"cut", @"copy", @"paste", nil];
    }
    return self;
}

– (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *displayString;
    if ([tableView isEqual:self.fileMenu]) {
        switch (indexPath.row) {
            case 0:
                displayString = [NSString stringWithString:@"File | new"];
                break;
            case 1:
                displayString = [NSString stringWithString:@"File | open"];
                break;
            case 2:
                displayString = [NSString stringWithString:@"File | save"];
                break;
            case 3:
                displayString = [NSString stringWithString:@"File | saveAs…"];
                break;
            case 4:
                displayString = [NSString stringWithString:@"File | exit"];
                break;
            default:
                break;
        }
    } else {
        switch (indexPath.row) {
            case 0:
                displayString = [NSString stringWithString:@"Edit | cut"];
                break;
            case 1:
                displayString = [NSString stringWithString:@"Edit | copy"];
                break;
            case 2:
                displayString = [NSString stringWithString:@"Edit | paste"];
                break;
            default:
                break;
        }
    }
    self.selectionDisplay.text = displayString;
    tableView.hidden = YES;
}

– (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

– (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    NSInteger retVal;
    if ([tableView isEqual:self.fileMenu]) {
        retVal = [self.fileMenuItems count];
    } else {
        retVal = [self.editMenuItems count];
    }
    return retVal;
}

– (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
   
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }
   
    // Configure the cell…
    if ([tableView isEqual:self.fileMenu]) {
        cell.textLabel.text = [fileMenuItems objectAtIndex:indexPath.row];
    } else {
        cell.textLabel.text = [editMenuItems objectAtIndex:indexPath.row];
    }
    return cell;
}
//…

The two methods fileMenuButtonTouched and editMenuButtonTouched make sure that the appropriate table view is displayed, and also set the contents of the selectionDisplay label to reflect the menu that should currently be shown. If more than two menus were to be used, we wouldn’t use an “else” clause in our code to determine the touched button or menu: we would use “else if” and specifically state the menu button or table view we are dealing with.

In the initWithNibName: bundle: method, we set the contents of the arrays that hold the menu items to be displayed in the table views. Table views take their contents from an indexed array of NSString values. This can be hard-coded (as it is here), or loaded from a plist sourced either locally or from an online source.

In the tableView: didSelectRowAtIndexPath: method, we check to see which table view is being interacted with, and then look at the value of indexPath.row to find the value that should be displayed. We could also use indexPath.row as the index to pass to [NSArray objectAtIndex:], but the strategy shown here is easier to understand. When the user presses a row in a table view menu, the selectionDisplay label will be updated to reflect the user’s selection and the menu is then hidden.

The method numberOfSectionsInTableView simply returns 1, since each menu (in this demo) only has one section to display. But the numberOfRowsInSection method must return the number of indexes in each array, depending on which table view object is being shown.

CellForRowAtIndexPath first gets a reusable cell, then sets its textLabel.text property according to which table is being filled. Again, in a more robust application, we would not use else, but rather else if… to find the proper table view.

The full list of items wired to the File’s Owner (MainViewController class) is shown here:

Run the application, and test the menus:

iOS 6: Accessibility gets a boost

iOS 6 Accessibility gets a boost

There are a number of new accessibility options in iOS 6 today, and you don’t necessarily need to be disabled to use them. For example, I accidentally dropped my iPhone 4 a few weeks ago and broke the Sleep button on top of the unit, and since then, I’ve been using the AssistiveTouch feature in the options to lock my phone’s screen with software rather than hardware. That menu has gotten an update in the new OS, allowing direct access to Voice Control, Screenshot, and the Multitasking menu, among other new and updated options.

iOS 6 also offers a new service called Guided Access, which allows you to lock down your phone to the use of one app, and then also enables you to circle off any part of the screen that you don’t want usable. This could be great for children, for example: If they want to draw with your iPad’s screen but you don’t want them going into any other apps or deleting any other work you might have, you can use Guided Access to make sure they’re only doing what you allow them to do.

iOS has drawn a lot of attention (and rightfully so) for making sure it’s accessible to anyone, no matter how they are able to use it. However, these accessibility features can be usable for everyone. There’s a lot of hidden functionality in these features, already included in the OS that you just installed.

iOS 6: Accessibility gets a boost originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 19 Sep 2012 21:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Some see iPhone queue as marketing opportunity

Most of us sit in line to get an iPhone for our personal use, but some see the iPhone launch frenzy as a way to grab some free exposure or make some extra cash. A report by Philip Elmer-DeWitt of Apple 2.0, profiles some of the early line-waiters who are using the opportunity to promote their website or raise some money for cancer research in the UK.

Sitting outside New York City’s iconic Fifth Avenue store are seven early birds who are braving the elements for more than five days. The first two are there to promote Vibe, their new mobile, social sharing service, while the other five are staying in the line thanks to Gazelle. The electronics recycler is buying these folks a new iPhone 5 and equipping them with Gazelle-branded gear while they wait. Not too shabby of a deal, if you have the time and fortitude to park yourself on a sidewalk for five straight days.

Some see iPhone queue as marketing opportunity originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 19 Sep 2012 20:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple web page outage inadvertently disabled iOS 6 device WiFi networking

If you have a new iOS 6 install, you may have experienced a temporary WiFi outage this evening. The problem seems to have stemmed from an unavailable Apple webpage. According to Steve Streza, iOS 6 pings a test URL that’s different from previous installs, which simply used apple.com.

When the web page at that URL went down, so did WiFi access. This URL is meant to allow captive portal network detection at venues like hotels. The problem seems to have been resolved on Apple’s end, and WiFi access is, as far as we know, restored for iOS 6 users. If the problem persists, you may have to toggle Wi-Fi off/on on your iOS device.

Update: TUAW Reader dmatos points out that this page seems to have been used in previous versions of iOS as well.

Apple web page outage inadvertently disabled iOS 6 device WiFi networking originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 19 Sep 2012 19:40:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments