Wednesday, May 22, 2013
Sunday, March 10, 2013
3D Interactive Heart
3D Interactive Heart
Very First in House app in Ariva Med Data
https://itunes.apple.com/us/app/3d-interactive-heart/id590676827
Very First in House app in Ariva Med Data
https://itunes.apple.com/us/app/3d-interactive-heart/id590676827
Friday, March 1, 2013
How can we prevent files/Folder from being backed up to iCloud and iTunes?
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
if ([paths count] > 0)
{
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *NineveshDict=[NSString stringWithFormat:@"%@/YourDir/",documentsDirectory];
[self addSkipBackupAttributeToItemAtURL:[NSURL fileURLWithPath:NineveshDict isDirectory:YES]];
}
-(BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
if (&NSURLIsExcludedFromBackupKey == nil) { // iOS <= 5.0.1
const char* filePath = [[URL path] fileSystemRepresentation];
const char* attrName = "com.apple.MobileBackup";
u_int8_t attrValue = 1;
int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0); return result == 0;
} else { // iOS >= 5.1
NSError *error = nil;
BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES] forKey: NSURLIsExcludedFromBackupKey error: &error];
if(!success){
NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
}
return success;
}
}
Wednesday, September 26, 2012
Some New features in iOS 6
1. Constraints...
Constraints used for alinement you can turn it on of by clicking Use Autolayout in File inspector
By default, Auto Layout is switched on for user interface.

These are dataSource methods for UICollectionView
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
Constraints used for alinement you can turn it on of by clicking Use Autolayout in File inspector
By default, Auto Layout is switched on for user interface.

2. UICollectionView
As per Apple Class reference
The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts. Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layoutsNow you can easily create grid like Photos app, and customize it like UITableView
These are dataSource methods for UICollectionView
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
as you can see all are same as UITableView dataSource methods, now you have to create a UICollectionViewCell class , Customize it according to your need and return it in
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
Here is the YouTube Video For this.
Tuesday, September 25, 2012
Wednesday, July 11, 2012
Monday, October 10, 2011
Good Example for Customize UITabBar
Good Example for Customize UITabBar
https://github.com/boctor/idev-recipes
https://github.com/boctor/idev-recipes
Subscribe to:
Posts (Atom)

