Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6992245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:36:33+00:00 2026-05-27T19:36:33+00:00

The following is my code for adding a calendar event. I want to sent

  • 0

The following is my code for adding a calendar event. I want to sent a background image for EKEventEditViewController. I found this code

UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0]; 

Using this code I was able to set background image for EKEventViewController but its not working for EKEventEditViewController. Any help is greatly appreciated. Thanks in advance.

     EKEventEditViewController *editController = [[EKEventEditViewController alloc] init];
//    UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0];
//    [eventTableView setHidden:YES];

//    [eventTableView setBackgroundColor:[UIColor redColor]];
NSMutableArray *allViewControllers = [NSMutableArray arrayWithArray: editController.viewControllers];
NSLog(@"%i", [allViewControllers count]);
 UITableView *eventTableView = [[[allViewControllers objectAtIndex:0] subviews] objectAtIndex:0];
//    UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0];
//    eventTableView.backgroundColor = [UIColor redColor];
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"honeycomb.png"]];
eventTableView.backgroundColor = background;
//    [background release];
editController.event =  [eventsList objectAtIndex:indexPath.row];
editController.eventStore = self.eventStore;
editController.editViewDelegate = self;
itsSelectedReminder = indexPath.row;
isReminderDeleted = TRUE;
[editController.navigationBar setTintColor:[UIColor colorWithRed:67/255.0 green:114/255.0 blue:18/255.0 alpha:1]]; 
[self presentModalViewController:editController animated:YES];

[editController release];
[tableView deselectRowAtIndexPath:indexPath animated:YES]; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:36:33+00:00Added an answer on May 27, 2026 at 7:36 pm

    This one drove me nuts for a while, but I finally figured it out.

    The trick is to somehow get access to the table view inside the EKEventEditViewController, and there seems to be only one (documented) way to do that:

    First, set the view controller presenting the EKEventEditViewController (or whatever you want to be responsible for the customization) as a UINavigationControllerDelegate:

    @interface YourViewController : UIViewController <UINavigationControllerDelegate>
    

    Second, set your view controller to be the EKEventEditViewController‘s delegate:

    EKEventEditViewController *eventEditViewController = [[EKEventEditViewController alloc] init];
    eventEditViewController.delegate = yourViewController; // Probably self
    

    Third, implement the following method in the delegate:

    - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
        if ([viewController isKindOfClass:[UITableViewController class]]) {
            ((UITableViewController *)viewController).tableView.backgroundColor = [UIColor blueColor];
            ((UITableViewController *)viewController).tableView.backgroundView = nil;
        }
    }
    

    This example will change the EKEventEditViewController‘s table view background to blue, but now that you have access to the actual navigation controller and the table view inside you can do whatever you want!

    Note: I have not yet submitted this code to Apple, but I’m not using anything undocumented, so I don’t see what would cause an issue.

    Enjoy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code adding an ActionListener to a JTextField: chatInput.addMouseListener(new java.awt.event.MouseAdapter() {
The following is my code for adding annotation into a mapview. This code is
I have the following code for adding to/extracting from Zip. I'm trying to refactor
I am using the following code --- EDIT @annakata : Adding the complete code
I am getting a segmentation fault with the following code after adding structs to
The following code nicely animates adding a new string to the end of a
i use the following code for adding more images on scroll UIImageView* imageshow=[[UIImageView alloc]
Following code should throw exception to prevent adding duplicate collection item. ICollection<T> collection =
I am adding a registry key using the following code: var key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(key);
Any ideas why the following code is not adding anything into the database once

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.