Sunday, March 18, 2012

Resize image for buttons

Ref: http://iphonedevelopertips.com/user-interface/ios-5-uiimage-and-resizableimagewithcapinsets.html

Retina image handling in iOS

Ref: http://www.oopstechblog.com/?p=2151

Thursday, March 8, 2012

symbolicating ios crash logs

http://kevincupp.com/2011/05/12/symbolicating-ios-crash-logs.html

Thursday, December 22, 2011

How to validate the iOS device has FaceTime feature

We can test by device iOS version will support this feature or not. But, we can upgrade the iOS version to 3G devices also, it doesn't have Front camera. So, the simple way to test the application is given below, it help us to validate the feature.

BOOL val = [[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];

NSLog((val)?@"Yes":@"NO");

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:(val)?@"Yes":@"No" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];

[alert show];
[alert release];

if(val){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"facetime://5555555555"]];
}

Phone Contacts backup in MAC using BT

I was searching for the solution how to backup my phone contacts saved most of the contacts in the phone memory. When I google it gives only the paid solution. But, I want simple free approach.

Nothing, What I did is just exported my phone contacts as vcf (electonic business card file) to my system using BT (Bluetooth).

Even, if you created contacts in the mac machine contacts application. It can be exported as vcf and send back to mobile device to restore/add contact.

What else! That's all we are done with backing up with our mobile contacts.

Mobile Device Used: Samsung Star - s5233

Wednesday, December 21, 2011

Customizing the TabBar images in iOS



Here is the sample code for you how to customize the tabbar in iphone. It will do with four stripe of images.




- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
NSUInteger selectedIndex = tabBarController.selectedIndex;

NSString *selectedImage;

switch (selectedIndex) {
case 0:
selectedImage = @"menu_selected.png";
break;
case 1:
selectedImage = @"location_selected.png";
break;
case 2:
selectedImage = @"offers_selected.png";
break;
case 3:
selectedImage = @"reviews_selected.png";
break;
default:
break;
}


UIImage *image = [UIImage imageNamed:selectedImage];
UIImageView *imageView = [[ UIImageView alloc ] initWithFrame:CGRectMake(0,440,320,40) ];
imageView.image = image;
[self.tabBarController.view addSubview:imageView];

}

Added: Source will do SKTabBar usage

Source: download