ios - How to have multiple elements be able to be affected by view controller -
i have extremely basic project multiple view controllers. first view has scroll view buttons. if press button on scroll view, goes different view controller. need scroll view on view. current tutorial using 1 jared davidson (https://www.youtube.com/watch?v=5hiyn_udfic). puts properties on scroll view in view controller.
import uikit class viewcontroller: uiviewcontroller { @iboutlet weak var scrollview: uiscrollview! override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. scrollview.contentsize.height = 1000 } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } }
the second scroll view have different properties, xcode won't let me control click drag view controller make @iboutlet second scroll view.
thank in advance.
are sure set correct class in view in interface builder correct view controller?
within interface builder (your storyboard), select second view controller, , on right side pane, change class name name of second view controller class
Comments
Post a Comment