• 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
iPhone Question: UIScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone Question: UIScrollView


  • Subject: iPhone Question: UIScrollView
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Tue, 21 Jul 2009 10:34:33 -0400

I'm a real noob when it comes to the UIScrollView. What I would like to do:
I have a View that contains a UIScrollView. Instead of loading an image in
there, what I would like to do is load in another view (say an image that's
a lot wider than the portrait iPhone... which has button sprinkled
throughout).

So the idea is you could pan around the view, and click on points of
interest in the image (using UIButtons or whatever). But I'm not quite sure
how to set this up. I created a View XIB (no view controller) and put some
stuff in there.

NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:@"details"
owner:self options:nil];

UIView *infoView = [nibViews objectAtIndex:0];

[myScrollView addSubview:infoView];


This works, but I can't make the view wider than the iPhone portrait. How
should I handle this?
_______________________________________________

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

  • Follow-Ups:
    • Re: iPhone Question: UIScrollView
      • From: Dave Camp <email@hidden>
    • Re: iPhone Question: UIScrollView
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Cocoa Graphics Parsing
  • Next by Date: Subclassing NSPopUpButton and NSPopUpButtonCell
  • Previous by thread: Re: Core Data, NSArraycontrollers and secondary to-many relationships.
  • Next by thread: Re: iPhone Question: UIScrollView
  • Index(es):
    • Date
    • Thread