There are three distinct approaches to iOS development:

Web Application Development The original iPhone OS 1.0 required all non-Apple applications to be web-based and executed within the Mobile Safari web browser. Because Mobile Safari does not support plugins like Adobe Flash or Microsoft Silverlight, this meant that all…

How To Manage NSMutableDictionary And NSMutableArray

//create the dictionary NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; //add keyed data [dictionary setObject:@"Object One" forKey:@"1"]; [dictionary setObject:@"Object Two" forKey:@"2"]; [dictionary setObject:@"Object Three" forKey:@"3"]; //write out Object Three to the log NSLog(@"%@", [dictionary objectForKey:@"3"]); //release the dictionary [dictionary release]; //create…

How to catch a Nan?

Nan represents Not a number When it happens to get a Nan as a result of an expression you have to find a way to catch it before. Let’s think an if statement and inside this the appropriate check. A…

How To Remove and Replace String within a String.

// Here We Deleting Something NSString *content = @"i am a good boy"; NSCharacterSet *deleteString = [NSCharacterSet characterSetWithCharactersInString:@"good"]; content = [[content componentsSeparatedByCharactersInSet: deleteString] componentsJoinedByString: @""]; NSLog(@"String===>>>%@", content); // Here We Replace Something NSString *replaceString = @"i am a good boy";…

How to validate or Allow Only Numeric value TextField in IOS or objective-c

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { BOOL allowChange = YES; if ([textField isEqual:zipText]) { allowChange = NO; int textLength = [textField.text length]; int value; if (([string isEqualToString:@""])) { allowChange=YES; } else { value = (int) [string characterAtIndex:0]; } if…

How to use datatype in IOS or Objective-c

%@ Object %d, %i signed int %u unsigned int %f float/double %x, %X hexadecimal int %o octal int %zu size_t %p pointer %e float/double (in scientific notation) %g float/double (as %f or %e, depending on value) %s C string (bytes)…