Friday, January 10, 2014

UIView nest multiple UIView

I have two UIView A, B

I
Lane in UIViewController[Self.view addSubView A];


Lane in xxView.h[Self.view addSubView B];
/ / -----------------------------
That is, [A addSubView B];
[UIViewController.view addrsubView A];
/ / Now the problem is that this only shows nested A, can not display B, I want to display A, B, A and B
on
/ / Requirements: Because there are many on A B, A hidden when I want to hide all the B,, there are other ideas can be
Reply:
Let B of A do not like the parent view
Reply:
cited a floor ran0809 reply:
let B of A do not like the parent view


[A addSubView B]; Do not let the parent view B of A to do it?
Reply:
reference to the second floor z8323664 reply:
Quote: references to a floor ran0809 reply:

Let B of A do not like the parent view


[A addSubView B]; Do not let the parent view B of A to do it?

Ah, the view has a tree-level structure, the sub-view view shows the father, managed by the parent view.
Reply:
reference to the third floor ran0809 reply:
Quote: references to the second floor z8323664 reply:

Quote: references to a floor ran0809 reply:

Let B of A do not like the parent view


[A addSubView B]; Do not let the parent view B of A to do it?

Ah, the view has a tree-level structure, the sub-view view shows the father, managed by the parent view.


Why I do not show?
Reply:
The reply was deleted administrator at 2013-08-25 09:21:50

Reply:
references, 4th Floor z8323664 reply:
Quote: references to the third floor ran0809 reply:

Quote: references to the second floor z8323664 reply:

Quote: references to a floor ran0809 reply:

Let B of A do not like the parent view


[A addSubView B]; Do not let the parent view B of A to do it?

Ah, the view has a tree-level structure, the sub-view view shows the father, managed by the parent view.


Why I do not show?


Root view controller is self.view,
[A addSubview: B];
[Self.view addSubview: A];
Reply:
Should be [A addSubview: B];
[Self.view addSubview: A]

You see, there may be added later in A, blocking the B

ios online solution exchange group: 62085689
Reply:
You
Lane in UIViewController[Self.view addSubView A]; able to see A, UIViewController code is not a problem.
The UIViewController not see where the A B
You should check the code A, A's code addSubView B, and top UIViewController unrelated

A total UIViewController subview B is a sub-view of A, B, and whether to display only the top level and A about unrelated UIViewController
Reply:
A addSubView B you check whether successful? If you are B A, you hide A, B also hidden.
Reply:
reference to the 7th floor VCwenqinglin reply:
should be [A addSubview: B];
[Self.view addSubview: A]

You see, there may be added later in A, blocking the B

ios online solution exchange group: 62085689


reference to the 8th floor zhang3652 reply:
where you
in UIViewController[Self.view addSubView A]; able to see A, UIViewController code is not a problem.
The UIViewController not see where the A B
You should check the code A, A's code addSubView B, and top UIViewController unrelated

A total UIViewController subview B is a sub-view of A, B, and whether to show the top level UIViewController A related and unrelated

only
reference to the 9th floor kenvinny reply:
you check A addSubView B is a success? If you are B A, you hide A, B also hidden.





A view I first increase in UIViewController, and then add a AView.h AView.m implementation file is A, then
in this implementation file
[Self addSubView B]; B is actually a button, and now how do not come out hey. .


Reply:
You put the key code stickers out of it
Reply:
In xxview.m
[Self addsubview b] or Controller in direct [a addsubview b]
Reply:
The reply was deleted administrator at 2013-09-10 13:55:17

Reply:
The key code stickers out
Reply:
The problem a long time ago, the problem has been solved

There are tree-level view of the structure of the sub-view view shows the father, managed by the parent view. Keeping this sentence like
Reply:
Should be able to, ah, find the code

No comments:

Post a Comment