objective c - Start a new activity in iOS programatically -


i creating application without using storyboard, creating widgets (uiviews) , adding them rootcontroller.view

self.view.addsubview(view) 

my question basic, have guidance in it. how bring new activity (as in android) programatically , have rootviewcontroller set object of different uiviewcontroller.

  • is concept of window same activity (in android) ?
  • how can make new window/activity slide in right, when button clicked ?

the appreciated!

p.s building application in swift.

so, haven't done android development, small projects. have done quite bit of ios development though. while concepts similar, not same.

the piece of code posted add subview existing superview (current view controller) not effect you're looking for. want push next view controller on screen.

self.navigationcontroller?.pushviewcontroller(yournewvc, animated: true) 

this give effect of sliding view controller being pushed in right described.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -