Skip to content
Browse files

Updating calendar day view to reference correct arrow image assets.

  • Loading branch information...
1 parent 8beacaf commit 8cece458841f49b6e35543f6ff3bedac0fb32783 @devinross committed
View
2 demo/Classes/CalendarMonthViewController.m
@@ -46,7 +46,6 @@ - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfac
- (void) viewDidLoad{
[super viewDidLoad];
[self.monthView selectDate:[NSDate date]];
- //[self.monthView selectDate:[NSDate month]];
}
@@ -57,7 +56,6 @@ - (NSArray*) calendarMonthView:(TKCalendarMonthView*)monthView marksFromDate:(NS
return self.dataArray;
}
- (void) calendarMonthView:(TKCalendarMonthView*)monthView didSelectDate:(NSDate*)date{
-
NSLog(@"Date Selected: %@",date);
[self.tableView reloadData];
}
View
1 src/TapkuLibrary/TKAppDelegate.m
@@ -56,7 +56,6 @@ - (void) _application:(UIApplication *)application commonInitializationLaunching
- (BOOL) application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
- NSLog(@"==");
[self _application:application commonInitializationLaunching:launchOptions];
return YES;
}
View
7 src/TapkuLibrary/TKCalendarDayView.m
@@ -553,10 +553,7 @@ - (UIButton *) leftArrowButton{
_leftArrowButton.tag = 0;
_leftArrowButton.frame = CGRectMake(0, 3, 48, 38);
[_leftArrowButton addTarget:self action:@selector(previousDay:) forControlEvents:UIControlEventTouchUpInside];
-
-
-
- [_leftArrowButton setImage:[UIImage imageNamedTK:@"calendar/Month Calendar Left Arrow"] forState:0];
+ [_leftArrowButton setImage:[UIImage imageNamedTK:@"calendar/calendar_left_arrow"] forState:0];
return _leftArrowButton;
}
- (UIButton *) rightArrowButton{
@@ -567,7 +564,7 @@ - (UIButton *) rightArrowButton{
_rightArrowButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
_rightArrowButton.frame = CGRectMake(self.frame.size.width-48, 3, 48, 38);
[_rightArrowButton addTarget:self action:@selector(nextDay:) forControlEvents:UIControlEventTouchUpInside];
- [_rightArrowButton setImage:[UIImage imageNamedTK:@"calendar/Month Calendar Right Arrow"] forState:0];
+ [_rightArrowButton setImage:[UIImage imageNamedTK:@"calendar/calendar_right_arrow"] forState:0];
return _rightArrowButton;
}
- (UILabel *) monthYearLabel{

0 comments on commit 8cece45

Please sign in to comment.
Something went wrong with that request. Please try again.