English 中文(简体)
可可 电信公司有与Adobelex s HBox或VBox相当的电算或部件?
原标题:Does Cocoa Touch have a UIView or component equivalent to Adobe Flex s HBox or VBox?

在目标c中是否存在任何类型的集装箱、观点、类别或框架,这样,人们就可以在观点中添加识别要素,并且能够自动在纵向或横向上加以调整? 或者,他们是获得《国际律师联合会意见》以了解这种行为的一种途径?

What I am trying to accomplish is to dynamically and conditionally add UI elements to a form but not have to worry too much about the layout, as I am not using Interface Builder for this part.

I ve done quite a bit of coding with flex/actionscript and found their HBox and VBox components to be pretty handy for this.

是否有任何人知道如何以这种方式或类似的方式来进行自我布局?

最佳回答

我知道,没有直接的等同。 在科恰,每一种观点都可以成为许多次调查的集装箱。 2. 您对您的分专题进行控制的方式可包括:

  • Using the autoresize mask of each subview to have the subviews "do the right thing" as the container view is sized/resized, and
  • Implement your own container rules by subclassing UIView and implementing the layoutSubviews method. This will allow you to implement any simple alignment rules you desire.
问题回答

暂无回答




相关问题
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, ...

热门标签