I keep getting the error, "cannot assign to 'scrollview' in 'self'" when trying to initialize scrollview (For the scrollview = UIScrollView() line in the convenience init). This error was never here until I updated to XCode 6.3. I have been stuck for hours and am sure I am just missing something dumb. Any direction would be appreciated.
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
// Setup the scrollview
scrollview = UIScrollView()
scrollview.showsHorizontalScrollIndicator = false
scrollview.showsVerticalScrollIndicator = false
scrollview.pagingEnabled = true
// Controllers as empty array
controllers = Array()
}
convenience init() {
self.init()
scrollview = UIScrollView()
controllers = Array()
}
0 comments:
Post a Comment