May 17, 2010

(iPHone)How to retrieve value of "Bundle version"

Here is how to retrieve value of "Bundle version" in the project.plist using code.

NSString *version = [[[NSBundle mainBundle] infoDictionary] 
objectForKey:@"CFBundleVersion"];

(Iphone)How to move up an UIAlertView

Here is a trick to move your UIAlertView up on the screen.

UIAlertView * alert = [ [ UIAlertView alloc ] initWithTitle:@"Alert" 
message:@"Alert" 
delegate:self 
cancelButtonTitle:@"OK" 
otherButtonTitles:nil ];

alert.transform = CGAffineTransformTranslate(alert.transform, 
0.0, 100.0);

[ alert show ];

May 10, 2010

(iPhone)How to resolve "resources have been modified" when install an adhoc version

It's pretty weird my client has met this problem when he install an adhoc version on his iPhone. Arial Balkan posted a very useful solution, the idea is transforming the application (file .app) to an .ipa file which is executable in the iTunes.

May 6, 2010

(XCode)How to resolve Error: 155015 (A conflict in the working copy obstructs the current operation)

It happens on a file i updated from SCM, the solution i found is:

- Backup current working file.
- Run svn revert in console.