This file contains 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
( | |
{ | |
maxEventStartTime = "2014-04-30 17:00:00 +0000"; | |
minEventStartTime = "2014-04-30 17:00:00 +0000"; | |
startDay = "2014-04-30 04:00:00 +0000"; | |
}, | |
{ | |
maxEventStartTime = "2014-05-01 14:00:00 +0000"; | |
minEventStartTime = "2014-05-01 04:00:00 +0000"; | |
startDay = "2014-05-01 04:00:00 +0000"; |
This file contains 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)fetchEventDays | |
{ | |
NSExpression *startDateTimeExpression = [NSExpression expressionForKeyPath:@"startDateTime"]; | |
NSExpression *minStartDateTime = [NSExpression expressionForFunction:@"min:" arguments:[NSArray arrayWithObject:startDateTimeExpression]]; | |
NSExpression *maxStartDateTime = [NSExpression expressionForFunction:@"max:" arguments:[NSArray arrayWithObject:startDateTimeExpression]]; | |
NSExpressionDescription *minStartDateTimeExpression = [[NSExpressionDescription alloc] init]; | |
minStartDateTimeExpression.name = @"minEventStartTime"; | |
minStartDateTimeExpression.expression = minStartDateTime; | |
minStartDateTimeExpression.expressionResultType = NSDateAttributeType; |
This file contains 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
@interface NIAgendaDetailViewController () | |
@property (nonatomic, weak) IBOutlet UITableView *table; | |
@property (nonatomic, strong) NIAgendaDetailMainCell *mainCellTemplate; | |
@end | |
@implementation NIAgendaDetailViewController | |
- (void)viewDidLoad |
This file contains 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
// the long text that needs to fit in the label | |
static NSString *longText = @"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum aliquet ornare quam vitae pulvinar. Vestibulum dapibus posuere facilisis. Maecenas iaculis nibh eu felis accumsan, id blandit metus congue!!!"; | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
if (indexPath.row == 0) { | |
NIAgendaDetailMainCell *cell = [tableView dequeueReusableCellWithIdentifier:@"agendaDetailMainCell" forIndexPath:indexPath]; | |
cell.lblNotes.text = longText; | |
return cell; | |
} else { |
This file contains 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
// NIScheduleBaseViewController.h | |
@interface NIScheduleBaseViewController : UIViewController <ScheduleNavigationDelegate> | |
@end | |
// NIScheduleBaseViewController.m | |
@implementation NIScheduleBaseViewController | |
- (void)viewDidLoad | |
{ |
NewerOlder