English 中文(简体)
罗马尼亚 观点问题
原标题:iOS UIImageView Layering question

我相信,这个问题已经在许多地方得到回答,但我不知道寻求回答这一问题的关键词是什么。 如果任何人能够把我与大的回答联系起来。

我不相信如何控制UIImageView(所有这些都以同样的观点来描述)以视觉方式涵盖他人。 换言之,如果我把“UIImage”语与另一个“UIImage”语放在同一地点,则第2号添加的字句总是涵盖第一种。 我不敢肯定,无论是在统一会计师协会编辑还是在法典中,如何做到这一点。 迄今为止,我一直在按我所希望的顺序补充这些内容,但我总是能够这样做。 尤其是,如果我需要把“UIImage”语写成“IBOutlet”,我需要把它放在我从方案上补充的所有“UIImage”语中。

难道有人能向我表明,如何从方案的角度,以及可能的话,如何在统一制度编辑中确定价值观? 感谢。

最佳回答

律师联合会有好几个处理这些问题的意向书:

  • When adding a subview:
    • insertSubview:aboveSubview:
    • insertSubview:atIndex:
    • insertSubview:belowSubview:
  • Moving subviews around in their z-ordering:
    • bringSubviewToFront:
    • sendSubviewToBack:
    • exchangeSubviewAtIndex:withSubviewAtIndex:

关于所有这些详情,可在上查阅。 UIViewdocument (UIImageView是分级)

问题回答

This is done at the UIView layer and is not specific to UIImageViews.

意见可在方案上用以下《统一意见》方法转达:

– addSubview:
– bringSubviewToFront:
– sendSubviewToBack:
– removeFromSuperview
– insertSubview:atIndex:
– insertSubview:aboveSubview:
– insertSubview:belowSubview:
– exchangeSubviewAtIndex:withSubviewAtIndex:

为了在Interface Buildinger向第十一届贸发大会提出,重新排列了这一看法中列举的观点,自下而上的行文是首要的目标:

https://i.stack.imgur.com/AjkUP.png” alt=“xib view”/>





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

热门标签