Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

f77coder

macrumors newbie
Original poster
Jun 13, 2014
24
0
Twilight Zone
all,

am developing an iPad app in swift, on root VC i have multiple VCs on top all connected with embedded segues. on the root VC there is going to be UIToolbar to control which VCs are active at any given time.

so by clicking a button on the UIToolbar how do i make a VC appear then disappear?

so far, after grepping through the docs, UIView has a AddSubview but have found not much else.

is there the equivalent of the html/css -z? force inactive VCs to a lower display?

any help? in swift
 
Have you read through the View Controller Programming Guide for iOS yet?

P.S. A lot of the documentation has not been updated for Swift. That's another reason, for now, to know some Objective-C.

yes i've tried to hash through it but find the documentation terrible. as you mention, most of it isn't updated to swift and most of their examples are iPhone not iPad.

and on iPad these segues are embed NOT modal or otherwise so you can't use prepareForSegue blah blah blah
 
Last edited:
thanks for all the help :roll eyes: it was insightful... NOT

figured it out myself without reading apple's crap obj-c documentation or their outdated examples.

score
me 100 for falling back on hard core c/perl/python experience.
apple 0 for not providing documentation or examples in swift.
 
there are two ways make code unreadable
1. run it through an obfuscator
2. write it in objective-c

Let me rewrite number 2 for you.
2. write it in a language the reader doesn't know and will whine about.​

thanks for all the help :roll eyes: it was insightful... NOT

That sounds rude. You shouldn't burn your bridges to the kind people who are trying to help out or others who may try to help you later on.

Since you have a solution, please post at least a basic description of your solution, so that when someone else arrives here via a search, they'll get a clue what to look for.

Lastly, please mark the question resolved.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.