Questions tagged [view-debugging]

12 questions
21
votes
1 answer

Assertion failure in UITextView _firstBaselineOffsetFromTop

I was learning about the view debugger in Xcode and capturing the view hierarchy with Debug > View Debugging > Capture View Hierarchy. However when I tried it in my app I got the following error: Assertion failure in -[UITextView…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
9
votes
2 answers

Why isn't UIButton returning correct constraints?

In my code below: I have 5 buttons added into a vertical scrollView. Each button is constrained to the scrollViews's top + 20 ,leading, trailing edges and its height. I have created a b1HeightConstraint variable. It's there to hold the…
mfaani
  • 33,269
  • 19
  • 164
  • 293
7
votes
2 answers

Xcode View Debugger: How can I reveal in the hierarchy the selection in the 3-D inspector?

In the Xcode 9 view debugger, I'd like to select a view in the 3-D exploded diagram of views, and then reveal that view in the hierarchy on the left. I know I can "focus" on that view by double-clicking it or selecting "Focus on UIView" from the…
Wolf McNally
  • 3,647
  • 1
  • 16
  • 13
2
votes
1 answer

How to find respective outlet connected to any UIView while viewing it in View Debugger?

So i am going through this really old code of Swift 2 and i am fixing bugs in a certain module. Now this module has a UITableView Cell and the person that worked on it has used Autoresizing on 10 labels inside the UITableViewCell.xib file and they…
Zahurafzal Mirza
  • 290
  • 1
  • 15
1
vote
1 answer

View hierarchy debugger only shows views frame

I have a very big problem with View hierarchy debugger in Xcode. This is my only project in which I have this behavior. When I capture the view hierarchy I only see frames and anything else. I already tried the "Adjust view mode" setting, but with…
Edoardo Vicoli
  • 227
  • 2
  • 8
1
vote
0 answers

How to prevent debugging on custom iOS framework

I developed my own iOS framework(for my clients) which provides login and some other features. I imported my framework into a test project and all runs well. In test project I invoked my framework which starts at InitialViewController and proceeds…
user7520106
  • 11
  • 1
  • 1
1
vote
0 answers

Debug View Hierarchy: [NSConcreteValue doubleValue]: unrecognized selector sent to instance

I'm trying to debug view hierarchy on my device (iPhone X, iOS 11.1) attached to the debugger (Xcode 9.1). However, even though the wireframes of the views are drawn, no actual view content is drawn and I'm getting exceptions printed to the console…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
1
vote
1 answer

Finding out location of view code from Xcode view debugging

Xcode's view debugging provides the memory address, color, etc. of a subview, but it does not contain any info on where the view code reside (or the name of image contained in an image view) or which view controller contains the current view being…
Boon
  • 40,656
  • 60
  • 209
  • 315
0
votes
1 answer

Does Android Studio have the equivalent of view debug like xcode?

I am trying to quickly learn a new code-base (android-based) and a great way of doing that in iOS is using xcode's view debugger. I do not know where to place break-points right now as there are way too many classes. Thanks!
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
0
votes
0 answers

How can I cast, inspect pointers given back from the view debug hierarchy?

I keep getting errors of hexadecimal floating literal requires an exponent or if I try to cast some label pointer, e.g. do: po 0x7ffded7e7cf0 as UIlabel I get: error: expected ';' after expression error: unknown type name 'as' I know I can see…
mfaani
  • 33,269
  • 19
  • 164
  • 293
0
votes
0 answers

Why View Debugger missing in Xcode?

Running old Objective-C project in Xcode 8. Xcode does not show View Debugger on my machine, friend of my has it, with same project. What is required to have View Debugger?
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

how to add a string property in view for viewserver to dump

I'm trying to add a string property in Android View.java and make ViewServer could dump view and get it. Here is what I wrote, but it doesn't work. protected String mTestinfo = "myTestInfo"; /** {@hide} */ @ViewDebug.ExportedProperty public String…
YiFan Li
  • 1
  • 1