Posts Tagged ‘update’

 

Kid-Capsule Version 1.2.2

May 10, 2012
Share

What’s New:

  • Now in Spanish

Bug Fixes:

  • Fixed a bug that assigned the wrong category to imported events under the “Other” sub-category.

Kid-Capsule Version 1.2.1

February 10, 2012
Share

What’s New:

  • 3 New Photo Sharing Backgrounds: We have added 3 brand new backgrounds to your photo sharing layouts. As we promised, we have completed the seasons to include Spring, Summer and Fall.
  • Quick Guide: This guide will describe the buttons and icons and what they do. If you are new to Kid-Capsule, you will see the quick guide on startup. If you are already own Kid-Capsule, you will still be able to access the quick guide through the “Information Screen” by tapping the at the top left of the screen.
  • Measurement Settings: You spoke, we listened. You now have the option of selecting the measurement settings for height and weight. Simply access the Kid-Capsule section in your device’s “Settings” and select the units you would like to use.

Enhancements:

  • Photo Layout Background Selection Screen: Now you can select the background for your photo layouts in a visual and friendly manner just as you do a photo from the gallery.
  • Improved Information Screen: Much easier to navigate and quick access to our news blog and Facebook page.
  • Double Tap on Thumbnails: Double tap a thumbnail in your photo or video galleries to view it.

App Dev Tips – App directories change after every update

July 8, 2011
Share

I learned this the hard way and wanted to share my experience.

Every time a user updates your app from the App Store, the default document directory changes. The best practice in this case would be to save a relative path to your files instead of the fully-qualified path. If you do this, the only thing you have to worry about is getting the current app document directory and appending the path you have saved in previous versions.

The way I have done this is by implementing 2 helper methods as follows:

- (NSString *)applicationDocumentsDirectory {

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
return basePath;

}

- (NSString *) trueUrl{

NSString *directory = [[self applicationDocumentsDirectory] stringByAppendingString:_relativeDirectory];
return directory;

}

So say for example you have created an images directory and saved a PNG image into that directory. You will have a file path such as:

YourAppDocumentDirectory1.0/images/file.png

When your users upgrade to version 1.1, the new path for the previously saved image will change:

YourAppDocumentDirectory1.1/images/file.png

Since you will not know beforehand what this directory will be, you can use the aforementioned helper methods to do the job for you:

- (NSString *)applicationDocumentsDirectory;

will return your current application document directory:

YourAppDocumentDirectory1.0 or YourAppDocumentDirectory1.1

and

- (NSString *) trueUrl;

will take the relative path you have stored

/images/file.png

and append it to the current application directory, thus giving you the true path you wanted in the first place.

If you have any questions don’t hesitate to ask.