BACKGROUND:
I now can see how to customise the color of a EKEventView, which is an apple view that you can use to display a calendar event. The code is per my post here: is this code future proof for customising color of EKEventViews (code attached)
If this view is EDIT'able however the apple EKEventView class then shows a modal "EKEventEditView" view.
QUESTION:
LINKS TO API:
EKEventViewController: http://developer.apple.com/library/ios/#documentation/EventKitUI/Reference/EKEventViewControllerClassRef/Reference/Reference.html
EKEventEditViewController - http://developer.apple.com/library/ios/#documentation/EventKitUI/Reference/EKEventEditViewControllerClassRef/Reference/Reference.html
I don't know how Apple will respond to this code, but it works :)
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(willShowController:)
name:@"UINavigationControllerWillShowViewControllerNotification"
object:nil];
And selector method:
-(void)willShowController:(NSNotification*)sender{
NSLog(@"%@ ", [sender description]);
UIViewController *controller = (UIViewController*)[sender object];
if ([controller isKindOfClass:EKEventEditViewController.class]){
UITableViewController *rootController = (UITableViewController*)[(UINavigationController*)controller visibleViewController];
UITableView *tv = (UITableView*)[rootController view];
[tv setBackgroundColor:[UIColor redColor]];
UIView *v = (UIView*)[[tv visibleCells] objectAtIndex:0];
v.backgroundColor = [UIColor blueColor];
}
}
There is only one string UINavigationControllerWillShowViewControllerNotification
which you cannot find in SDK. But in this case it's only the string..
Hope this help you.