Add Local Notification at particular time
Cancel one particular LocalNotification
Add Local Notification at particular time
Cancel one particular LocalNotification
webView.scrollView.scrollsToTop = NO;
[inputTextView becomeFirstResponder]; [inputTextView setKeyboardAppearance:UIKeyboardAppearanceAlert];
NSString *qs = @"username=hank&age=27&blog=whhnote.blogspot.com"; NSDictionary *queryParams = [self parseQueryString:qs]; NSLog(@"%@", queryParams); NSLog(@"%@", [queryParams objectForKey:@"username"]); // get username from dictSo, you will get a dictionary look like
{ age = 27; blog = "whhnote.blogspot.com"; username = hank; }
#if TARGET_IPHONE_SIMULATOR // It's running on the simulator 目前跑在模擬器上 #else // Running on Actual Device 在實機上跑 #endif
NSDate *now = [NSDate date]; NSTimeInterval interval = [now timeIntervalSince1970]; NSLog(@"%@", now); // Date NSLog(@"%f", interval); // Date to Timesatmp NSLog(@"%@", [NSDate dateWithTimeIntervalSince1970:interval]); // Timestamp to Date
#import <QuartzCore/QuartzCore.h> txtView.layer.cornerRadius = 5;
NSPredicate *predicate = [NSPredicate predicateWithFormat: [NSString stringWithFormat:@"(firstName like '%@')", @"Hank"]]; NSArray *items = [fetchedResultsController.fetchedObjects filteredArrayUsingPredicate:predicate]; for (NSManagedObject *o in items) { NSLog(@"%@", o); }
CGRect f = self.view.frame; NSLog(@"w=%f, h=%f", f.size.width, f.size.height); NSLog(@"x=%f, y=%f", f.origin.x, f.origin.y);
- (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger row = [indexPath row]; return row; }