I have made a ui in which i am showing some textfileds.I have added all textfields inside a mainview & added mainview under scrollview.But main view is always taking space from top.I have added
self.automaticallyAdjustsScrollViewInsets = NO;
in scroll view .But that make scroll view static. Then the scroll view does not scroll.I am changing the contentSize of scrollview on when keyboard appears & disappears.