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
| NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; | |
| [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss'Z'"]; | |
| [dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; | |
| NSDate *date = [dateFormatter dateFromString:@"2112-10-11T06:06:31Z"]; | |
| NSLog(@"date: %@", date); |
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
| NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; | |
| [dateFormatter setDateStyle:NSDateFormatterShortStyle]; | |
| NSLog(@"now: %@", [dateFormatter stringFromDate:[NSDate date]]); |
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
| NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; | |
| [dateFormatter setDateFormat:@"yyyy-MM-dd"]; | |
| NSLog(@"now: %@", [dateFormatter stringFromDate:[NSDate date]]); |
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
| @protocol TTVideoRetrievalDelegate <NSObject> | |
| @optional | |
| - (void)retrieveGroupsWithVideos; | |
| @end |
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
| @protocol TTVideoRetrievalDelegate <NSObject> | |
| - (void)retrieveGroupsWithVideos; | |
| @end |
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
| NSString *categoryString = [[categories valueForKey:@"categoryId"] componentsJoinedByString:@","]; |
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 "ContainerViewController.h" | |
| #define SegueIdentifierFirst @"embedFirst" | |
| #define SegueIdentifierSecond @"embedSecond" | |
| @interface ContainerViewController () | |
| @property (strong, nonatomic) NSString *currentSegueIdentifier; | |
| @end | |
| @implementation ContainerViewController |
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
| <scene sceneID="v5c-aN-zd9"> | |
| <objects> | |
| <viewController id="JHA-3b-Fah" sceneMemberID="viewController"> | |
| <view key="view" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="redraw" id="iNd-Pp-gkg"> | |
| <rect key="frame" x="0.0" y="0.0" width="280" height="150"/> | |
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| <subviews> | |
| <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="First View Controller" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="di2-sr-QZd"> | |
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> |
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
| self.cogBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"\u2699" style:UIBarButtonItemStyleBordered target:self action:@selector(cogButtonPressed)]; | |
| [self.cogBarButtonItem setTitleTextAttributes:@{UITextAttributeFont : [UIFont fontWithName:@"Helvetica" size:24.0]} forState:UIControlStateNormal]; | |
| self.navigationItem.rightBarButtonItem = self.cogBarButtonItem; |
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
| - (BOOL)popoverNeedsDismissing:(UIPopoverController *)popover | |
| { | |
| return ((popover) && ([popover isPopoverVisible])) ? YES : NO; | |
| } | |
| - (void)dismissPopover:(UIPopoverController *)popover | |
| { | |
| [popover dismissPopoverAnimated:YES]; | |
| popover = nil; | |
| } |