• 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
Re: MKMapView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MKMapView


  • Subject: Re: MKMapView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 6 Aug 2010 10:43:40 +0700

On 6 Aug 2010, at 00:03, Fritz Anderson wrote:

> On 5 Aug 2010, at 2:57 AM, Gerriet M. Denkmann wrote:
>
>> I have an MKMapView which sometimes does:
>> 	[ mapView addSubview: selectorView ];
>> and selectorView contains a UIPickerView.
>
> I'm not sure why you feel it necessary to drop your selector view directly into the map view?

No reason at all. Just a case of old habits - overlapping subviews once used to be forbidden.

> My experience is that MKMapView is a sensitive thing. It would not surprise me if it assumed that its top-level view contained only its own content.
>
> What happens if wrap the map view and the selector view in a common root view?

Well, I replaced:
	[ mapView addSubview: selectorView ];
with:
	[ [ mapView superview ] addSubview: selectorView ];
and it seems to be working much better.

>  If you add the selector view last, it would overlay the map view without mucking with its internals.
>
> Root view
> 	Map view
> 	Selector view
> 		Picker

Thanks a lot for your help!

Gerriet.

_______________________________________________

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

References: 
 >MKMapView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: MKMapView (From: Fritz Anderson <email@hidden>)

  • Prev by Date: UIActionSheet - Insert button at index?
  • Next by Date: core data structure?
  • Previous by thread: Re: MKMapView
  • Next by thread: Is this the correct way to cache an IMP?
  • Index(es):
    • Date
    • Thread