First message is overlapped by Navigation bar,scroll to top.
shravanteegala opened this issue · comments
@shravanteegala If you create it using a UINavigationBar class, then do this:
topContentAdditionalInset = navigationBar.frame.height
in your viewDidAppear()
It leaves enough space for your navigationbar at the top of collectionView, if you need more just change the height to like:
topContentAdditionalInset = navigationBar.frame.height * 1.2
I didn't find topContentAdditionaInset property ?
Are you using JSQMessageViewController? just type topContentAdditionalInset in your viewDidLoad and you will see it
Yes I subclass the BBJSQMessageViewController:JSQMessageViewController.but that property not found error. in Objective-C.
like...below my code.
@interface BBJSQMessageViewController : JSQMessagesViewController <UIActionSheetDelegate, JSQMessagesComposerTextViewPasteDelegate,JSQMessagesCollectionViewDataSource,ImageCropViewControllerDelegate,UIDocumentInteractionControllerDelegate>
{
ImageCropView* imageCropView;
}
weird, not too sure then, im using IOS Swift, cant help more then, sorry
@shravanteegala How about self.additionalContentInset.top
?
@shravanteegala did self.navigationController.navigationBar.translucent = NO;
fix the problem?
Thank you.