App Store delivering corrupted binaries for some apps (Updated)

instapaper.jpgUpdate: Per AllThingsD and TechCrunch, Apple has now commented on the binary corruption problem; it says the server issue that was responsible for problematic DRM code has been rectified.

There are better ways to spend the 4th of July holiday than answering scores of angry support emails, but that’s apparently what several iOS and Mac App Store developers wound up doing thanks to a glitch in Apple’s software distribution systems.

First reported by Instapaper sole proprietor Marco Arment and subsequently affirmed by other devs including Good.iWare (Goodreader) and Readdle (Scanner Pro), the problem seems to have affected apps updated on July 3rd forward. User symptoms are pretty simple: the app crashes, rather abruptly.

The good news is apparently only users who updated within the first few hours of a new version’s availability are affected, and deleting and reinstalling the app generally clears up the issue; that removes any on-device settings and stored content, however. Goodreader’s developers did a nice job of documenting the backup/app removal/reinstall/restore process, if you’ve got a corrupt app with onboard data.

As to the “why” of this problem, it’s not clear yet, but the affected developers (more than 70 so far by Arment’s count) are zeroing in on issues with Apple’s encryption pass on the submitted executables. When an app is handed off to Apple for distribution in the App Store and approved by the review team, it’s signed with Apple’s digital keys (to allow iOS devices and Macs to run it) and encrypted to discourage piracy. The Goodreader devs suggest in their post that this encryption process isn’t fully complete at the point that customers are getting a “new version available, download now!” notification — so when they click that Update button, what they get is a half-baked binary rather than the correctly formatted app.

In the short term, there’s not much for users to do except wait an hour or two before downloading new app updates that show up (kind of like waiting 30 minutes after eating before heading into the pool). We’ll reach out to Apple for comment and see what, if anything, we hear back.

App Store delivering corrupted binaries for some apps (Updated) originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 05 Jul 2012 12:18:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Apple, Samsung drop more claims in upcoming trial

The trial between Apple and Samsung in the US District Court in California is slated to begin at the end of July, and both companies are making final preparations for the case. Part of this process requires each company to pare down the number of claims it is asserting in the case, reports FOSS Patents.

Earlier this year, Judge Lucy Koh ordered the two companies to limit the number of claims in the case, which the companies did on May 1 and May 7. On Tuesday, another round of reductions was submitted to Judge Koh for review. According to FOSS Patents, Apple dropped its infringement claim on its multipoint touchscreen patent and narrowed its trade dress claims by removing references to Samsung’s packaging. Samsung, likewise, dropped its total number of claims from 15 down to 9. Koh will examine these changes and decided if further reduction is needed before the trial.

Apple, Samsung drop more claims in upcoming trial originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 05 Jul 2012 12:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Layout app adds framing style to images on the iPad

Layout app adds framing style to images on the iPadJuicyBits Software is well known for some innovative iOS apps, including Halftone and 3D Camera. Now the company has released a new app that’s perfect for arranging, annotating, framing, and sharing any image you can view on your iPad. Layout (US$2.99) is an iPad app that makes it child’s play to create an attractive, framed arrangement of your favorite images and then share it with friends.

I had the pleasure of testing Layout over the last week, and I found it to be both easy to use and just plain fun.

The app currently supports the iPad (2nd generation or later), but will be available soon in an iPhone-compatible Universal version (free upgrade). Upon launching Layout, you’re welcomed with a blank gray screen. That’s your palette for creating a photo arrangement. You can add framed windows by simply swiping a finger horizontally or vertically, then drag the edges between windows with a finger. You can save your own window arrangements, or use one of the pre-defined arrangements.

When you tap on a window, a radial menu control appears. This control is completely unique to Layout, and is used to perform all functions from adding images, touching up photos or applying effects, adding captions, and sharing.

Adding images is easy. The images initially come from just your camera roll, but if you wish you can have the app go out to Instagram, Flickr, or Facebook and bring in your photos. Coming from those sites, the captions are automatically grabbed as well.

Captions can also be added to any image, and if there’s EXIF information included, it will let you automatically add the date with the touch of a button.

The photo effects engine is powered by Aviary, and is very full-featured. If you want to enhance a photo, add effects, put stickers (like mustaches or hats) on people, change the orientation of an image, crop a photo, change the brightness, contrast, saturation or sharpness, or do human touchups (redeye correction, whiten teeth, or remove blemishes), it’s possible.

The sharing button lets you email your layout, save it to the camera roll, or share with Facebook, Twitter, or Flickr. I was unable to get the Twitter sharing to work properly, but Facebook sharing worked very well, creating a Layout Photos album.

As with Halftone, Layout has found a permanent place on my iPad. It looks like the perfect tool for putting together “postcards” to email to friends and relatives when I’m on a trip. Take a look at the video below for a better idea of how the app works.

Layout app adds framing style to images on the iPad originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 05 Jul 2012 11:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Review: PowerSkin battery pack and protective case for iPhone

PowerSkin is an all-in-one external battery pack and silicon protective case for your iPhone 4 or 4S. It promises to double the performance of your iPhone’s battery while protecting it from knocks and drops with a 100% recyclable silicone case.

Personally, I’ve never been the kind of guy to use a protective case or extra battery packs for my phone. Usually, I’m never more than a day away from charging my iPhone, and although the idea of protecting my iPhone with a case really does appeal, I’ve always felt a protective case adds too much bulk and weight to make it practical for me.

So when I got the opportunity to spend some time with the PowerSkin, I was curious as to how much of an impact it would make on my habits with regards to using my phone.

Typically, I get through a day with between 10% – 20% charge left on my iPhone. I then put it on to charge through the night, so I’m all good to go with a fully charged battery in the morning. I wouldn’t say I’m a heavy user, but I use my iPhone for data and calls throughout most of the day.

If I’m away and I don’t get a chance to charge up, I know my iPhone will see me through the day, and night, to about the first thing the next morning before it dies. So about 23 hours of my typical usage before my iPhone dies.

With the PowerSkin, I’m pleased to say I got just shy of twice the battery life of my iPhone: a total of 45 hours. If I’d turned my iPhone off through the night, I probably could have knocked that figure up a few hours. But, for nearly two whole days, I didn’t have to charge my iPhone. I have to say, it was a little disconcerting not putting my phone into its dock for its nightly juice-up. But I was also reminded of previous mobile phones I’ve owned, maybe 7 or 8 years ago, where I wouldn’t think to charge the phone for two or three days as standard. Things certainly have changed!

The PowerSkin has some nifty features as well as a great battery. It has a built-in LED light indicator to tell you how much charge left, and an on/off switch if you want to turn the external battery off altogether. Charging is made simple enough with a USB cable plugged into your Mac, PC or USB mains adapter — the PowerSkin also makes sure the iPhone battery charges first, before its own. Another nice touch is synginc to iTunes while charging — a bonus if you’re not using WiFi syncing.

The protective case fits snugly around the iPhone, with all buttons, sensors and the camera unobstructed. And it’s easy to put the phone in the case or take it out. With the case on, there is a serious bit of bulk attached to the phone. In my rough estimates, it adds about the bulk of another iPhone to your current iPhone, plus a bit of extra length at the bottom of the phone. It’s not unusable in any way, but it did make me feel like I was using a mobile phone from the late 1990s, and I was much more aware of my iPhone in my trouser pocket.

The silicon case itself provided adequate protection. If I was to drop my iPhone with the case on, I’d still be concerned, but the back and corners are well covered — it’s just the screen which is still exposed.

Although I’m not a fan of protective cases and battery packs because of their extra bulk and weight (as mentioned above), the PowerSkin does a great job at providing protection and extra juice for when you need it. I can certainly see the benefits of having one in easy reach for those moments when you unexpectedly need an extra charge or some protection in a precarious mobile phone situation. With out the phone inside, the PowerSkin can easily disappear into a bag pocket or desk draw for such occasions.

If you’re like me and you prefer your iPhone sans case and additional battery, the US$69.99 price tag will perhaps feel a little on the pricey side for such occasional uses. But if you know that regularly you’re going to come up short on charge, and could do with the protection, the PowerSkin is certainly worth checking out.

Review: PowerSkin battery pack and protective case for iPhone originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 05 Jul 2012 10:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

TUAW and MacTech interview: Karelia Software

Karelia Software makes an excellent iWeb alternative called Sandvox (we reviewed version 2.0 here). In this video, Neil Ticktin (Editor-in-Chief, MacTech Magazine) interviews Dan Wood of Karelia Software at WWDC 2012. Dan was kind enough to tell us about their thoughts on the announcements on WWDC, and how it will affect their plans moving forward.

TUAW and MacTech interview: Karelia Software originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 05 Jul 2012 09:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Open Source iOS Component Providing File Downloading From Many Different Services

With iOS 5 and iCloud it became relatively easy to add in document loading from the web.  The problem is that many users are using services other than iCloud to store their files.

So here’s a component that allows you to quickly add in the capability of using files from many different online services.

The component allows you to gather files many different services including image, video, zip and document formats from many different sources including among others the iTunes library, iCloud, Google Drive, SkyDrive and DropBox.

All done using a very slick looking custom picker.

Here’s an image showing the picker and some of the available sources from the readme:

The library/control is from Dzen Interactive and can be found on Github here.

A great component for quickly adding in file loading capability with a nice interface.

DeliciousTwitterFacebookRedditLinkedInEmail


Lightweight Objective-C Library Designed To Make Working With OpenGL ES Easier

Working with OpenGL ES can be difficult, and there are a number of libraries and frameworks to make working with OpenGL ES easier, including Apple’s own GLKit.

Anton Holmquist has released a new lightweight OpenGL ES Objective-C library designed to work within UIKit.  The library uses the Math functions from Cocos2D, but is designed purely for rendering, and to be extended.

Anton states:

The framework contains some classes for doing basic stuff like sprite batching and Wavefront OBJ loading, but I believe the real power lies in the ability to extend it to whatever you need.

Rend Example

An OBJ file rendered using Rend.

You can find further information and download the library on Anton’s site here.

Looks like a great start, can’t wait for the tutorials to come.

DeliciousTwitterFacebookRedditLinkedInEmail


Open Source Library For Core Data Syncing Between Any Number Of iOS And Mac Devices

In the past I pointed to an iOS development tutorial demonstrating how to use Core Data with iCloud.

Here’s a library that provides an alternative designed for the synchronization of Core Data objects between any number of iOS and Mac devices.

The library was designed for mulitple sync options, and if it doesn’t support what you need the library was built to be extended.  Currently Desktop Dropbox, and iDisk along with the Dropbox SDK on iOS are supported.

Also included with the library are a shopping list, and notebook example apps so you can quickly test the syncing capability of the library for yourself.

The library is TICoreDataSync and can be found  with the examples on Github here.

Extensive documentation can be found here.

A great library for syncing data.

 

DeliciousTwitterFacebookRedditLinkedInEmail


Daily iPhone App: Arrow Mania lets you hone your shooting skills by downing planes and solving puzzles

Arrow Mania is part puzzle, part arcade game that’ll both entertain and challenge you when you have a few free minutes. The centerpiece of the game is an arrow-firing orb that you move through a maze of platforms using magnets. You must shoot targets to open doors and raise or lower platforms. Trickier shots require you to bounce the arrows around corners while you avoid hitting the friendly birds flying overhead.

There are also airplanes dropping parachute bombs that you can destroy in a hail of arrows. It’s an all-round fun game that can be enjoyed by kids and adults alike. The game has 30 levels that start off short and easy and increase in length and difficulty. It also supports the retina graphics of the new iPad and the iPhone 4/4S.

Arrow Mania is available in the iOS App Store for 99-cents. It’s a universal app that’s compatible the iPad, iPhone and iPod touch running iOS 4 or later.

Daily iPhone App: Arrow Mania lets you hone your shooting skills by downing planes and solving puzzles originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 04 Jul 2012 16:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Download Redsn0w 0.9.14b2 – Improved iPhone 3GS Baseband 06.15.00 Downgrade, DFU IPSW Method

MuscleNerd has just released Redsn0w 0.9.14b2, and update version of RedSn0w that not only improved the iPhone 3GS baseband 06.15.00 downgrade but also adds the DFU IPSW feature to put your device…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

Apple Reminds Users that iWork.com will shut down on July 31

Earlier this week we reminded MobileMe users that Apple would be shutting down the service, well now Apple has sent out another round of reminders, this time however they are kindly reminding those using iWork.com that it too will be discontinued on July 31.The email reads as follows:

Dear iWork.com user,

Remember, as of July 31, 2012, you will no longer be able to access your documents on the iWork.com site or view them on the web.

We recommend that you sign in to iWork.com before July 31, 2012, and download all your documents to your computer. For detailed instructions on how to save a copy of your documents on your computer, read this support article at Apple.com.

Moving forward, you can use iCloud to store your documents and make them available across your computer and your iPhone, iPad, or iPod touch. Learn more about iCloud.

Sincerely,
The iWork team

iWork.com originally launched in January 2009 as a free Beta, unlike MobileMe however the service never exited beta, and when Apple introduced iCloud offering new options for moving and editing documents, the Cupertino  company decided to kill of iWork.com.

 

Open Source iOS Control Providing A Great Looking Segmented Slider

Previously I mentioned a tutorial on customizing a UISlider to create your own custom control and last week I mentioned an interesting library that allows you to create customized sliders with reflective metallic knobs.

Here’s another open source custom iOS control that takes slider customization to another level.

This code provides a segmented slider control that is great for providing users with an easy way to filter content.  Each segment can be selected with sliding like a normal UISlider control or selected with a tap.  You can customize the coloring, and text and when a segment is selected the text is highlighted.

Here’s an image from the including example project:

Custom Slider Control

Here’s a video showing the control in action:

The control is iOS Filter Control by Shady Ahmed Elyaski and can be found on Github here.

A great example of a custom UIControl.

DeliciousTwitterFacebookRedditLinkedInEmail


Converting between Strings and Numbers

When programming for iPhone or iPad, we often need to get input from the user. This input usually comes from Text Fields as an NSString type. If the input is numeric, we will need to convert the string to a numeric type before working with it. Let’s see how this is done.

Start Xcode, and select “Create a new Xcode project.” Choose the Single View Application template and click Next. Name the project “Number2String” and choose options as shown below:

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

We’ll begin by configuring the .zib file for the user interface. Drag four labels, two text fields, and a button to the view. Your interface should look something like the one shown to the right. We’ll wire up these controls shortly, but first let’s talk about what will happen as the program runs.

When the user touches one of the text fields, they will see the keyboard. As they enter a value into the field, the text property of the UITextField will be updated with an NSString type. We can read the value of this string by looking at this property, but if we want to add the values in the two fields, we must first covert them to numeric types.

The “Add” button (through it’s IBAction method) will do the work of converting the two NSStrings from the UITextFields into floating point numbers. It will then add them together. But in order to display the sum in the last UILabel, it will have to convert the sum back into a string.

Open ViewController.h, and make the changes shown here:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@property (nonatomic, strong) IBOutlet UITextField *num1;
@property (nonatomic, strong) IBOutlet UITextField *num2;
@property (nonatomic, strong) IBOutlet UILabel *sum;

– (IBAction)addButtonTouched:(UIButton *)sender;
– (IBAction)dismissKeyboard:(UITextField *)sender;

@end

As you can see, we’ve added three IBOutlet properties, two for the UITextFields and one for the UILabel that will display the sum. We’ve also added two action methods: the addButtonTouched method will add the two numbers and display the result, and the dismissKeyboard method will make the keyboard go away when its “Done” button is touched. Make sure to set the return key type on both UITextFields to “Done” in the .zib file.

Wire up the outlets and actions as shown:

Note that the addButtonTouched action is wired to the Add button’s TouchUpInside event and the dismissKeyboard action is wired to each text field’s DidEndOnExit event. Num1 and num2 are wired to the UITextFields, and sum is wired to the last UILabel on the view.

Now open up ViewController.m, and make these changes:

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

@synthesize num1, num2, sum;

– (IBAction)addButtonTouched:(UIButton *)sender
{
    float num1f = [num1.text floatValue];
    float num2f = [num2.text floatValue];
    float sumf  = num1f + num2f;
    self.sum.text = [NSString stringWithFormat:@"%f", sumf];
}

– (IBAction)dismissKeyboard:(UITextField *)sender
{
    [self.num1 resignFirstResponder];
    [self.num2 resignFirstResponder];
}

– (void)viewDidLoad
{
    [super viewDidLoad];
        // Do any additional setup after loading the view, typically from a nib.
}

– (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    self.num1 = nil;
    self.num2 = nil;
    self.sum  = nil;
}

– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

@end

First, we synthesize the properties num1, num2, and sum. Next, we define the two action methods. In the addButtonTouched method, we can see the conversion from a string to a number taking place in these two lines:

float num1f = [num1.text floatValue];
    float num2f = [num2.text floatValue];

we get the floating point value of an NSString by sending the floatValue class method to it as shown above. To obtain an int value, we would send the intValue method. (We could also get an NSInteger by sending the integerValue method to the string.) These floating point values are assigned to local variables within the addButtonTouched method.

In the next line, the values are added into a new float variable named sum. The sum is then displayed in the UILabel *sum using the stringWithFormat class method.

By the way, when we use a class method to obtain an object (as with stringWithFormat), that object will be automatically released for us. This is because there are no strong references to the object. The general rule is if we don’t use alloc, copy, or new to get an object, there will be no strong reference, and we don’t have to worry about the memory associated with the object.

The dismissKeyboard method simply calls resignFirstResponder on both UITextField controls. There is another blog in this series that discusses this process in detail.

When the program is run, we see the following results:

Note that the value obtained is not quite 32.3 as we would expect. This has to do with the precision of the floating point result, not with a defect of our program. The precision error can be dealt with by other means (rounding to a desired number of decimal places is the usual approach).

Take time to play around with various formatting specifiers in the stringWithFormat method, and also try intValue instead of floatValue (assigning the results to ints instead of floats). Have fun!

Reversing a String in iPhone

Sometimes we want to perform some task on an object that is not included in the methods of that class. An example of this might be reversing the order of characters in an NSString object. While we could certainly do this in code, it would be better if we could add a class method to NSString itself that would reverse any string. In this blog, we’ll use a category to add the string reversal method to NSString.

A category is an Objective – C construct that allows us to add methods to any class, regardless of whether we have the source code for that class. Once we add a category to a class, all the methods in the category are added to all instances of the class in our code. Since categories are maintained in separate files, it is a simple matter to include them in any project where the extended features of the class are desired.

Open Xcode, choose “Create a new Xcode project,” select the Single View Application template, and click Next. Name the project “CategoryDemo,” and choose options as shown here:

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

When the app template has been created, open the ViewController.zib file, and drag controls to the view as shown below:

Note that the first control is a UITextField and the second is a UILabel. Set the UITextField’s return button type to “Done.”

Now we’re going to add the category. Right – Click on the ViewController.zib file, and select New File from the popup menu. Select Objective-C Category as shown here:

Click Next, then name the new category “AddedMethods”. Make sure that the category is on NSString, as shown:

Click Next, then Create. Two new files will be generated with the names NSString+AddedMethods.h and NSString+AddedMethods.m. This file naming convention makes it easy to see categories that we have added.

Open the NSString+AddedMethods.h file and add the declaration for our new class method as shown here:

#import <Foundation/Foundation.h>

@interface NSString (AddedMethods)

+ (NSString *)stringByReversingString:(NSString *)str;

@end

Save the file, and open the NSString+AddedMethods.m file. We’ll be adding the definition for our new class method here, as shown:

#import "NSString+AddedMethods.h"

@implementation NSString (AddedMethods)

+ (NSString *)stringByReversingString:(NSString *)str
{
    char cString[50];
    char revString[50];
    NSString *retval;
    [str getCString:cString
          maxLength:[str lengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 1
           encoding:NSUTF8StringEncoding];
    printf("%s", cString);
   
    for (int i = 0; i < strlen(cString); i++) {
        revString[i] = cString[strlen(cString) – (i + 1)];
    }
    revString[strlen(cString)] = ‘‘;
    retval = [NSString stringWithCString:revString encoding:NSUTF8StringEncoding];
     
    return retval;
}

@end

It is much easier to index into C strings and build them up character by character than it would be for NSString objects. In this method, we set up two buffers (char arrays). Then we get a C string representation of the str argument by using the getCString:maxLength:encoding method. In this method, the maxLength parameter must be one more than the number of bytes in the NSString to account for the NULL terminator on C strings.

We then copy each character from the cString to the revString in reverse order (in the for loop). After doing this, we put a NULL terminator ( ‘′) at the end of the reversed string, create a new NSString (retval) from the contents of the reversed string, and return it.

Next, open the ViewController.h file, and make changes as shown below:

#import <UIKit/UIKit.h>
#import "NSString+AddedMethods.h"

@interface ViewController : UIViewController

@property (nonatomic, strong)IBOutlet UILabel *output;

– (IBAction)inputDone:(UITextField *)sender;

@end

We must import the category in order to use it, as shown in the above listing. Declare one outlet for the label, and one action method for the text field. Using Interface Builder, wire up the output outlet to the UILabel object and the inputDone: method to the UITextField’s Did End On Exit event.

After the buttons are wired up to their corresponding methods, open the ViewController.m file and add the statements shown here:

@synthesize output;

– (IBAction)inputDone:(UITextField *)sender
{
    self.output.text = [NSString stringByReversingString:sender.text];
    NSLog(@"%@", self.output.text);
    [sender resignFirstResponder];
}

Add these lines immediately after the @implementation line in the .m file. As always, we synthesize properties, then add methods. The action method sets the output label’s text property to the reversed contents of the input text field’s text property using the stringByReversingString method we just added to the NSString class. After doing this, the method calls resignFirstResponder on the sender, which dismisses the keyboard.

Run the application now, enter a string in the text field, then click the Done button on the keyboard and observe the result.

Categories are a very powerful tool for adding functionality to existing classes. When we add a category to a class, all child classes of that class will inherit the added methods as well. As a further exercise, try to add another method to NSString category we defined that replaces all spaces in a string with underscores!