Questions tagged [subviews]

Use this tag for questions related to extracting/manipulating/removing subviews. Subviews are parts of the hierarchy of a view, like the UIView iOS class.

subviews means the views which are holding/added over a 'View'.

as stated in ( iOS ) What is superview and what is subviews

Users use this tag for questions regarding listing/extracting all the subviews of a View, removing/deleting subviews of a View, altering/disabling the functionality of a subview of a View, reordering the subviews of a View, etc. .

182 questions
1
vote
1 answer

ARC - inserting multiple subviews and handle actions

I have some problems with ARC. I'm trying to add multiples views to a ScrollView, and after that if the user tap one view will call a action. But when user tap the view i get this message: "message sent to deallocated instance" How can i retain the…
1
vote
0 answers

UIView created during initWithFrame:frame won't disappear after removeFromSuperview

This only occurs in iOS 4.3. There isn't a problem in iOS 5. I've created a custom view. In initWithFrame:frame I'm creating several subviews and adding them to my view. Later, I try and remove those views: for (UIView *v in self.subviews) { [v…
Quentamia
  • 3,244
  • 3
  • 33
  • 42
1
vote
3 answers

Why isn't UITableViewCell's Separator View listed?

I want to remove certain UITableViewCell separators (not all of them). I see them in the UI, but don't understand why they don't get listed when I print out the subview hierarchy? for view in cell.subviews { DDLogDebug(String(describing:…
Sebastian Dwornik
  • 2,526
  • 2
  • 34
  • 57
1
vote
2 answers

How to disable main UI when overlay appears?

I've built a streaming audio app that looks like this: When the stream is lost, I overlay this screen: My issue is that with Voiceover ON, all the underlying controls are still active: I can swipe to them all, and adjust their value. Here is a…
Manelion
  • 167
  • 9
1
vote
2 answers

How to get UIAlertController over UIView in Objective C?

I am new to iOS Programming, I have Implemented UITableViewController and getting that tableViewController design on my homepage like a popup, Backside I added Blur effect between homepage and tableViewController. Both blur effect view and…
1
vote
0 answers

Bring drawing UIView in front of image

I'm trying to code an app which in part involves using one's finger to trace an object in a photograph. I've got two relevant files: import UIKit class SecondViewController: UIViewController { @IBOutlet weak var image_edit: UIImageView! …
Deltron
  • 11
  • 1
1
vote
2 answers

How to access the view such as imageview and label in SearchBar Reference?

I am trying to customize the SearchBar using the SearchBar reference as declared bellow @property (weak, nonatomic) IBOutlet UISearchBar *searchRef; Then, i am trying to access the UIImage Reference and UISearchBarTextFieldLabel as shown in…
user7755257
1
vote
0 answers

Swift 3 iOS10: How to get height of a subview that has dynamically loaded content

i'm trying to load a viewcontroller (with tableview) as a subview inside a contentview of a parent view controller and trying to get the height of the subview. MainViewController: ScrollView…
s3agent
  • 61
  • 1
  • 6
1
vote
1 answer

View as a subview of UIStackView cannot be rotated

I have a UIStackView, in it there's a subView called A. I want to rotate the view A. But nothing happened. I can rotate the A's layer, it's OK. So how to make animation of subviews of UIStackView?
leizh00701
  • 1,893
  • 5
  • 21
  • 32
1
vote
1 answer

Blade template loads the resources in one sub view doesn't work for other

I am facing a pretty strange problem working with templates in Laravel. I will demonstrate it with the following example. css/custom.css .muted{ color:red } Layout.blade.php HomePage
Nauman Zafar
  • 1,083
  • 15
  • 40
1
vote
2 answers

How to get the count of a Particular Subview in a UIView?

I want the count of a particular subview inside a UIView. I am adding some multiple textviews to my view and I want the count of the total UITextviews added to the view? I am able to iterate inside the subviews of the array but not able to find the…
Pradeep Reddy Kypa
  • 3,992
  • 7
  • 57
  • 75
1
vote
0 answers

Zooming in and out all subviews in scroll view

I have a scroll view with 2 subviews: the first one is an image view and the second one (on top of the first one) is a UIView, where the user can draw the content he wants to. I have implemented the scroll view delegate method…
1
vote
2 answers

I was confused by immutable copy and mutable copy in Objective-C

Oddly, there is no command for removing all of a view’s subviews at once. However, a view’s subviews array is an immutable copy of the internal list of subviews, so it is legal to cycle through it and remove each subview one at a time: for v in…
lolita
  • 459
  • 1
  • 4
  • 9
1
vote
0 answers

How to get UITableViewCell subviews in iOS8?

Where can I find UITableViewCellEditControl inside UITableViewCell. I'm running too old code that needs some UI fix on a quick deadline. I don't have enough time to do it so as I couldn't find any other way. The app should be supporting from iOS 8.0…
Hemang
  • 26,840
  • 19
  • 119
  • 186
1
vote
1 answer

Shouldn't an NSTableview autoresize when its superview resizes?

I have an NSTableview on the contentview of an NSWindow. When I resize the window, I would like the height of the NSTableview to resize. This isn't working. To make sure I haven't set something incorrectly, I created a new mac project, view-based,…
Rick Schlueter
  • 141
  • 1
  • 10