English 中文(简体)
• 如何在海道建立横向教学基础?
原标题:Basics on how to setup horizontal paging in iOS app?
  • 时间:2011-11-02 01:29:46
  •  标签:
  • ios

I ve looked for this for a while, but I can t find any good guides or resources that explain it thoroughly (not even Apple s own documentation, which seems to not have as much information as I d expect). I want to setup a basic interface that has 6 pages horizontally. Each page will have a bunch of labels and textboxes, but the layout will be the same for each page. Eventually, I want to be able to have each page scroll down to view all the content, but I m assuming I just need to use scrollviews as the content for each page. Also, each page will eventually have to have separate names for each textbox (and separate from the other pages too) because I ll need all the content of the whole app to be saved out later.

但事实上,现在我只需要说明如何开始工作。 我尝试过一次辩论,但当我在守则中打字时,Xcoden没有承认我的一个班子(我知道我包括它)。 此外,我不了解实际进展,我认为我需要理解我所说的话。

Also as a side note, how do I start programming for iOS 5? I updated Xcode to the latest version which said it had support for iOS 5, but I only get up to 4.3 in my project target.

问题回答

You can use this project http://cocoacontrols.com/platforms/ios/controls/icarousel, the only downside is it does not support cell reuse, so if you plan on having more than a 5 or so panels the app will really start to blog down.

For any future searchers that have found this thread, I was able to achieve what I wanted. Basically, just make a scrollview the size of however many pages you want (multiply the width by how many pages you want and that will be the content width). Then just enable paging in interface builder and it will page through the view. Then you can just add content to the scrollview.

这并非是困难的。 当我对我的一些意见作答复时,我有一个非常详细的模板观点,主要包括一张表,但也包括许多纽芬兰语和文本领域。 令我感到惊讶的是,当我们聚集一堂时,他们的工作情况如何——没有与姿态或任何东西有任何真正的麻烦——是一个良好的开端。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签