Questions tagged [uiview-hierarchy]

110 questions
0
votes
1 answer

Curtain revealing view

I am trying to achieve the following challenging effect: I want to move the white "curtain" down in order to reveal the red box. (Note: in the screenshots below the curtain is white and the background is grey) The problem is in the view hierarchy.…
user-123
  • 874
  • 1
  • 13
  • 34
0
votes
4 answers

Hidden UIView in CollectionViewCell brokes autolayout

I have a UICollectionViewCell with autolayout constraints. It works as aspected but my application prints a lot of warnings about unsatisfied constraints: Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the…
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
0
votes
1 answer

Cannot break on symbol -[UIView _viewHierarchyUnpreparedForConstraint:]

I am debugging a problem with programmatically adding constraints. When my app crashes LLDB tells me to break on -[UIView _viewHierarchyUnpreparedForConstraint:] to debug the problem further. However, when I add a breakpoint with LLDB : b s -n …
malena
  • 798
  • 11
  • 26
0
votes
1 answer

Write the UIView Hierarchy

I’m trying to write a text file with name of all the views contains in the Screen. For example I have a UIView in which I have 2 UIButtons so the file should be as bellow.. UIWindow UIView UIButton UIButtonLabel …
Suryakant Sharma
  • 3,852
  • 1
  • 25
  • 47
0
votes
0 answers

I wish I could create custom view with tableview in iOS

I'm having trouble creating a view hierarchy. I'm developing a custom UIView to display a list. Here is what I would like to achieve: Instead, I'm getting the following weird output: I want the OK button to be at a specific X,Y position. **My…
Nikunj Patel
  • 303
  • 2
  • 11
0
votes
1 answer

Synchronized hierarchy of UIViews and CALayers

I have the following hierarchy: view scrollview(with scroll and zoom enabled) containerview imageview (with a map) views for buttons views for navigation panel Over the image view I have to put some point of interest…
user63391
  • 1
  • 2
0
votes
1 answer

iOS: For implementing instruction overlay: need one branch of view hierarchy to be laid out before another branch is laid out

I'm trying to implement an overlay to provide instructions to the user about the other views in an app. Here's a sketch of the view hierarchy: SomeFullScreenContainerView FullScreenContainerOfInstructionView InstructionView …
ememem
  • 968
  • 1
  • 10
  • 23
0
votes
1 answer

Crossfade between identical views on top of each other

I have 2 identical views on top of each other. One is a real one and one is supposed to act as a dummy. I'd like to crossfade between them (silently). I set one view's alpha to 0 and second view's alpha to 1 simultaneously in the same animation…
user-123
  • 874
  • 1
  • 13
  • 34
0
votes
3 answers

iOS: [self.view setNeedsDisplay];

I seem to have forgotten the basics regarding this or perhaps I am just too tired. I have a view controller and a view that is a subclass of UIView that is named MyViewClass. In viewDidLoad of my viewController I alloc and init self.myView like…
Unheilig
  • 16,196
  • 193
  • 68
  • 98
0
votes
2 answers

Scroll View doesn't scroll when touching and holding then swiping

I have UIScrollView with other UIView elements inside. My other UIView elements are mostly segmented controls. If I click on a UISegmentedControl and hold for a second and then try to scroll, then no scrolling happens. I can only scroll when my…
neo
  • 1,952
  • 2
  • 19
  • 39
0
votes
1 answer

UIViewcontroller not visible in the uinavigationcontroller stack

To the window i am adding a uinavigation controller as the rootviewcontroller of the window.Say first view controller is the root viewcontroller.In this first viewcontroller i am firing an nstimer with repeat interval of 15 sec to call an api and…
0
votes
1 answer

Select a particular UIView when view is loaded in one xib file

I have 5 segmented contol segments on navigation bar and the requirement of my app is such that I have to change views in within one segment only. Now I have two UIViews within one xib. I have set an integer flag and depending on that flag, I need…
Deepak Thakur
  • 3,453
  • 2
  • 37
  • 65
0
votes
1 answer

How to find from which view controller a method is called

To give more specifics: I am working with FBLoginView. I am using storyboards and a separate xib file for my LoginViewController. In my app, I have a loginViewController which is a FBLoginViewDelegate. And a SettingsViewController which is a…
tiw
  • 535
  • 1
  • 6
  • 22
0
votes
1 answer

Container Views & Passing Data

I am having difficulty passing data to a tableViewController that is housed within a container view as can be seen here: For context, the View controller which contains the two container views is itself the first tab of a tabViewController that act…
OneManBand
  • 528
  • 5
  • 24
0
votes
3 answers

UIView inside a UIViewController or better way to do it?

I have a problem on how to properly do a certain kind of action. The image below shows a UIViewController, but the second part of the view is a custom UIView (the one with the profile pic, name and Show View button). The subclassed UIView is…
Joakim Engstrom
  • 6,243
  • 12
  • 48
  • 67