Example: <pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; [dict setObject:@"John" forKey:@"Firstname"]; [dict setObject:@"Doe" forKey:@"Lastname"]; [dict setObject:@"info at objectgraph.com" forKey:@"Email"];  </pre><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0;...

Init empty  NSString *nombre = [NSString stringWithString:@""]; or NSString *nombre = [NSString string]; <h3>Init with string value</h3><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> NSString *nombre = [NSString stringWithString:@"Your value"]; </pre>Note:...

IntroductionCCMenu have alignItemsInColumns that organize items based on number of rows and columns.Note: this number must be the same as the number of elements or you will get an exception:<blockquote>‘NSInternalInconsistencyException’, reason: ‘Too many menu items for the amount of rows/columns.’</blockquote>Example:Create menu with 5 elements, into 2 columns and 3 rows:<pre...

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title of the message" message:@"message to show" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];[alert autorelease]; [alert show]; Source

<div style="font-family: Menlo; font-size: 11px; margin: 0px;">You can replace the string that you need to search with any string and it will return the number of replaces (the number of ocurrences of the string):</div><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto;...