• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Odd problem with UIView touch handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd problem with UIView touch handling


  • Subject: Odd problem with UIView touch handling
  • From: PCWiz <email@hidden>
  • Date: Sun, 1 Aug 2010 20:26:37 -0600

Hi,

For my iPad app, I'm using a UIViewController subclass called SidebarViewController to display some stuff in a sidebar. In the sidebar I have a calendar control. I'm using the open source Kal component from http://github.com/klazuka/Kal. In the -viewDidLoad method of SidebarViewController, I'm creating a new instance of KalView (the main view for the calendar) and adding it as a subview of SidebarViewController's view:

	_logic = [[KalLogic alloc] initForDate:[NSDate date]];
	_calendarView = [[KalView alloc] initWithFrame:CGRectMake(0.0, 62.0, 273.0, 239.0) delegate:self logic:_logic];
	KalDate *currentDate = [KalDate dateFromNSDate:[NSDate date]];
	[_calendarView selectDate:currentDate];
	[self.view insertSubview:_calendarView atIndex:0];

The calendar displays and everything, but there's one problem. The main component of the calendar is the KalGridView, which is a subview of KalView. It displays the date tiles, etc. When the app starts, for some reason, the KalGridView does not receive touches. The touches are intercepted by SidebarViewController's view. Weirdly enough, if I tap the month change buttons at the top of the calendar to change the month, the KalGridView starts receiving touches again.

I can't figure out why this is happening, because none of the other subviews of SidebarViewController are affected by the same issue.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: How troubleshoot when Managed Object disappears from Store?
  • Next by Date: Re: Unarchiving issues
  • Previous by thread: Re: How troubleshoot when Managed Object disappears from Store?
  • Next by thread: Displaying an edit field in a cell at the bottom of the tableview
  • Index(es):
    • Date
    • Thread