All Questions

68
votes
17answers
72435 views

How can I loop through all subviews of a UIView, and their subviews and their subviews

How can I loop through all subviews of a UIView, and their subviews and their subviews?
277
votes
14answers
147417 views

Remove all subviews?

When my app gets back to its root view controller, in the viewDidAppear: method I need to remove all subviews. How can I do this?
70
votes
20answers
77896 views

How to list out all the subviews in a uiviewcontroller in iOS?

I want to list out all the subviews in a UIViewController. I tried self.view.subviews, but not all of the subviews are listed out, for instance, the subviews in the UITableViewCell are not found. Any ...
49
votes
4answers
28726 views

Apple Interface Builder: adding subview to UIImageView

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIImageView addSubview:myUILabel]; But can I do it ...
30
votes
10answers
30993 views

UICollectionView cell subviews do not resize

In a CollectionView, some cells should have an additional subview or layer. The CollectionView can be told to resize it's cells, thus all content needs to resize appropriately. Currently, the cell is...
6
votes
3answers
5158 views

Where Does A UIAlertView Live While Not Dismissed

Does anyone know in whose subview an active UIAlertView is located or how to find the thread in which it is running?
37
votes
1answers
40224 views

When to use f:view and f:subview

I am not sure what are the benefits of using <f:view> and <f:subview>. I noticed that one could write JSF pages without using them. What are the benefits of using those tags?
23
votes
3answers
18853 views

UISegmentedControl Best Practice

I'm trying to work out the "best" way to use a UISegmentedControl for an iPhone application. I've read a few posts here on stackoverflow and seen a few people's ideas, but I can't quite sort out the ...
74
votes
4answers
53827 views

Difference between addSubview and insertSubview in UIView class

What is the difference between addSubview and insertSubView methods when a view is added programmatically?
37
votes
9answers
30167 views

Cannot put a google maps GMSMapView in a subview of main main view?

I'm struggling with this problem! I want to add a google maps GMSMapView into a UIView that is only a portion of the main UIView of my ViewController. It should be simple... I created with the storyb...

Previous Next