ios - Positioning items in overlapping UIViews in xib file -


let's have xib stack of uiviews on top of each other: bottom uiview(a) uibutton on , when button pressed, layer hidden , next 1 shown , put on top.

the next uiview(b) contains clock counting down 5 0 , when 0 reached uiview hidden , 1 described above moved front , shown instead.

so make more clear:

the composition of xib:
a b
--z direction-->

update: screenshot attached @ bottom of page.

so problem:
when (re)positioning button or clock using mouse in xcode tend stick wrong uiview. more objects , "stacked" uiviews greater problem.

the question:
there way to, layer "eye" in photoshop, isolate uiviews , work on them 1 one?

observe! aware there o there ways of achieving swapping between view not issue. real problem here position button , clock in xcode wysiwyg editor least hassle. observe!

-------- added clarification --------
screenshot isolate views visually when working on 1 of them, others hidden , not open interaction.

i isolate views visually when working on 1 of them, others hidden , not open interaction.

you can drag second view (b) out of main view hierarchy , place below (on same level of main view). way you'll able edit each view separately.

then connect view (b) outlet in viewcontoller inorder able add main view during runtime...just set frame , add sub view.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -