I am trying to edit a UIView inside a UIScrollView. I have set the UIView's hight to 700, but I can't scroll around to place objects. I want to open the UIView in a separate window to edit its content. Or, is there another way I should be approaching this? The first answer in this question contains an example of what I am trying to do, although in storyboard. What am I doing wrong, or is it possible? Thanks!
Asked
Active
Viewed 179 times
2 Answers
1
I would create a separate XIB file for the UIView you are going to be creating, then create a new class as the file owner of this XIB. You would then want to connect the UIView inside your UIScrollView to this.
The steps involved are illustrated in this past question: Add subview from a xib or another scene with storyboard

Community
- 1
- 1

Devin Lynch
- 289
- 2
- 14
-
I have tried this, and I get stuck in an infinite loop when adding the xib.... Any other ideas? Thanks for pointing this out! – Siriss Apr 10 '13 at 17:26
-
Can you post some of your code? Also, where is the infinite loop happening? I don't understand where that would occur. – Devin Lynch Apr 10 '13 at 17:49
-
That will take some time, but I will certainly work on it. What would be best to pull? – Siriss Apr 10 '13 at 18:15
-
Well I just don't understand where you are getting an infinite loop. Can you explain that more? – Devin Lynch Apr 10 '13 at 18:28
-
I am getting it in the `initWithCoder` call (from the example). It is trying to load my xib, but it just gets stuck forever. I have changed the name to match my xib, and it gives no errors, and does not crash. – Siriss Apr 10 '13 at 19:06