Monday, September 20, 2010

Error:The model used to open the store is incompatible with the one used to create the store(in iphone/iPad)

When i was working with coredata first it runs perfect after i change the the data model,my program got crashed.

To solve this problem:
  • Delete your previous builds completely.
  • Delete the app in simulator also
Now build the application and run it its work fine now.

Wednesday, September 1, 2010

Border and Rounded corners the UIImage

To border the UImage is Simple way

Bofore adding the Code import QuartzCore  (#import <QuartzCore/QuartzCore.h>)

UIImage *MyImage=[UIImage imageNamed: @"baby.jpg"];

MyImage.layer.borderColor = [UIColor lightGrayColor].CGColor;


MyImage.layer.borderWidth = 2.0;
To add Corner radius for the same image just add below two lines

MyImage.layer.cornerRadius = 10.0;

MyImage.layer.masksToBounds = YES;