This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private let cellReuseIdentifier: String = "yourCellReuseIdentifier" | |
| // | |
| func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { | |
| var cell : UITableViewCell? = tableView.dequeueReusableCellWithIdentifier(cellReuseIdentifier) as? UITableViewCell | |
| if (cell == nil) { | |
| cell = UITableViewCell(style:.Default, reuseIdentifier:cellReuseIdentifier) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) fireNotificationsForAllWeekDays: (NSInteger) hour minute: (NSInteger) minute { | |
| [self fireNotificationForDay:Monday hour:hour minute:minute]; | |
| [self fireNotificationForDay:Tuesday hour:hour minute:minute]; | |
| [self fireNotificationForDay:Wednesday hour:hour minute:minute]; | |
| [self fireNotificationForDay:Thursday hour:hour minute:minute]; | |
| [self fireNotificationForDay:Friday hour:hour minute:minute]; | |
| } | |
| - (void) fireNotificationForDay: (WeekDayType) day hour: (NSInteger) hour minute: (NSInteger) minute { | |
| NSDateComponents *dateComponents = [[NSDateComponents alloc]init]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <WebKit/WebKit.h> | |
| @interface ViewController : UIViewController | |
| @property(strong,nonatomic) WKWebView *webView; | |
| @property (strong, nonatomic) NSString *productURL; @end | |
| - (void)viewDidLoad { | |
| [super viewDidLoad]; | |
| self.productURL = @"http://www.URL YOU WANT TO VIEW GOES HERE"; | |
| NSURL *url = [NSURL URLWithString:self.productURL]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; | |
| _webView = [[WKWebView alloc] initWithFrame:self.view.frame]; |
NewerOlder