Posts

Showing posts from January, 2013

Learn OPEN CV

http://docs.opencv.org/ http://stackoverflow.com/questions/6661706/object-detection-in-iphone-using-opencv-template-matching-or-haar ======================================================================== http://code.google.com/p/ios-face-detection/ ======================================================================== http://code.opencv.org/projects/opencv/wiki ======================================================================== Tutorial  http://docs.opencv.org/trunk/doc/tutorials/ios/table_of_content_ios/table_of_content_ios.html#table-of-content-ios ======================================================================== building-opencv-for-iphone-in-one-click http://computer-vision-talks.com/2011/02/building-opencv-for-iphone-in-one-click/ ========================================================================

JSon Parsing

In Your class //Call [self parseByHUD]; -(void)parseByHUD { HUD = [[MBProgressHUD alloc] initWithView:appDelegate.window]; HUD.tag=2; HUD.graceTime = .1; HUD.labelFont = [UIFont fontWithName:@"Arial" size:16]; //HUD.labelText = @"Authenticating"; HUD.delegate = self; [appDelegate.window addSubview:HUD]; [HUD showWhileExecuting:@selector(JSONMethod) onTarget:self withObject:nil animated:YES]; } -(void)hudWasHidden:(MBProgressHUD *)hud { [mainTableView reloadData]; } -(void)JSONMethod { //Your URL NSString *urlString = [NSString stringWithFormat:@"%@city.php",SiteAPIURL]; id result = [webServiceParsing getDataFromURLString:urlString]; } In   webServiceParsing.h //Json Parsing +(id) getDataFromURLString :(NSString*)urlString { NSLog(@"****IN****"); NSURL *url = [NSURL URLWithString:[urlString stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]; NSLog(@"...