Tutorial

admin on January 28th, 2011

fileName = @”mydata.json”; NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:fileName]; NSData *data = [NSData dataWithContentsOfFile:path]; if (data) { NSString *jsonStr = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]; NSLog(@”REPLY: %@”, jsonStr); } Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post

Continue reading about How To Read a File From Your Application Bundle

admin on January 27th, 2011

Did you ever wonder what the meaning is between a ‘-’ or a ‘+’ to the left of a method ? for instance: – (void)loadInfoFile; versus + (void)loadInfoFile; The first is a regular method and the second is a class method. In plain English, you do not need to instantiate an object of the second [...]

Continue reading about ‘-’ vs ‘+’ in objective-c methods

admin on January 17th, 2011

UIImage *cellImage = [UIImage imageNamed:@"Image.png"]; [cell.imageView setImage:tableImage]; CGSize imageSize = CGSizeMake(45,55); UIGraphicsBeginImageContext(imageSize); CGRect imageRect = CGRectMake(1.0, 1.0, imageSize.width, imageSize.height); [cellImage drawInRect:imageRect]; cell.imageView.image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post

Continue reading about How to resize a tableView row image?

admin on January 11th, 2011

UILabel *legalLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 300, 120)]; legalLabel.lineBreakMode = UILineBreakModeWordWrap; legalLabel.numberOfLines = 0; //legalLabel.textAlignment = UITextAlignmentCenter; legalLabel.textColor = [UIColor whiteColor]; legalLabel.backgroundColor = [UIColor blackColor]; legalLabel.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:(14.0)]; legalLabel.text = NSLocalizedString(@”legal_disclaimer”,@”"); [self.view addSubview:legalLabel]; Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet [...]

Continue reading about Adding UILabel programatically

admin on January 8th, 2011

Many of us went through school without learning about finances, I believe this is a big mistake.  As I learn more and more about finances I realized the sooner you learn about some key basic financial principles the better off you will be in life. Here is a great resource from ming and Scholastics to [...]

Continue reading about Be sure to teach your kids about money

admin on December 15th, 2010

Who has not been at one time or another requested by family members to do free tech support? Some folks at Google want to remedy this situation by providing video tutorials for then non technical savy Find out more at  ’Teach Parents Tech” website Bookmark on Delicious Digg this post Recommend on Facebook share via [...]

Continue reading about Teach Parents Tech via Google