In iOS 7, the positionForBar method should be implemented. However, I have tried implementing it but it doesn't work. <code>\- (UIBarPosition)positionForBar:(id<UIBarPositioning>)bar { return UIBarPositionTopAttached; }</code> 
In iOS 7, the positionForBar method should be implemented. However, I have tried implementing it but it doesn't work.
- (UIBarPosition)positionForBar:(id)bar {return UIBarPositionTopAttached;
}