i had type Int. please help me fix that?
Instead of i * self.view.frame.size.width
, use CGFloat(i) * self.view.frame.size.width
You need to type cast i into CGFloat, write your line of code as
var frame: CGRect = CGRectMake(CGFloat(i) * self.view.fram.size.width, self.tutorialHolderView.frame.origin.y, 0, self.tutorialHolderView.frame.size.height)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With