1 Answer
1

It looks like you are taking scrollview in xib. So, you need to remove [self.view addSubview:scrollview]; from your code and you can directly set properties of that scrollview in xib except setContentSize(that you need to set in .m file).

Or if you want to create scrollView manually, remove from xib and use this: