views:

291

answers:

3

The 'info' button in Interface Builder shows me that there are dozens of 'Illegal Geometry' warnings, each one with the issue 'This view overlaps one of it's siblings.' Is this anything to be worried about? Will it stop the app being accepted by Apple? The errors are happening because I'm layering PNGs over each other when I make the interface.

+2  A: 

Not a problem, as long as you're aware it's happening.

Of course, there are probably better ways of doing things. If your images aren't going to be moving, it might make more sense to compose them into one larger image and just use that one. If they are going to be moving, it might make more sense to just add them programmatically.

But this is your code, and you'll have a better idea of what you're expecting than I will.

BJ Homer
+1  A: 

If the views are not opaque, keep in mind that you will copositing them together at runtime which will incur a performance penality. If these appear on a view that needs to scroll I would want to make sure that they are opaque or not overlapping, otherwise I would not worry to much.

Brad Smith
+5  A: 

It should be fine. I have an app with the same warnings that was accepted with no problems.

The issue is that overlapping siblings are not allowed if the views are not backed by Core Animation layers (default on the desktop). On the iPhone, all UIViews are backed by CoreAnimation layers, so the overlapping is acceptable. As stated in the documentation for UIViews (2nd paragraph, last sentence): "Sibling views are able to overlap without any issues, allowing complex view placement."

hjon