New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding footer #21
Comments
@krisanthony Because I custom the layout of collectionView in NOCChatViewController, there is only one section, I did not add supplementary view or decoration view support. If you want to use supplementary view for some reason, you can custom NOCChatCollectionViewLayout by yourself. I recommend you use cell just without event handler in NOCChatViewController. |
Hey thanks for reply.
Yeah I did try making a custom layout that conformed to the flow delegate
protocol. The method still didn't get called. No idea..
I'm using custom cells now instead. Would have liked to use footer as then
wouldn't need to keep track of the added cell.
…On Thu, Mar 30, 2017 at 1:32 AM Yinglun Duan ***@***.***> wrote:
@krisanthony <https://github.com/krisanthony> Because I custom the layout
of collectionView in NOCChatViewController, there is only one section, I
did not add supplementary view or decoration view support. If you want to
use supplementary view for some reason, you can custom
NOCChatCollectionViewLayout by yourself. I recommend you use cell just
without event handler in NOCChatViewController.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AIE2ua8QTrLCk5tI5EAfYudZYADyP2Dyks5rq2izgaJpZM4MtYgb>
.
|
In the same vein is it possible to adjust the content inset at all? Seems to be constantly being adjusted. I need some padding on the top, the list is in reversed mode. How would I go about adding some padding to the top of the messages? |
@krisanthony You're welcome. Could you show me how did implement custom layout? Maybe I can help you find out the reason. About the content inset, in reversed mode, you can modify the bottom inset, but you need to be careful, when the size of chat view changed or keyboard frame changed, you should consider your changes. |
Nothing special. I tried two ways. One, I made the NOCChatViewController subclass conform to Then I also tried using a custom flow layout that was a subclass of I have used the same exact code in the same project in a non- |
@krisanthony NOCChatCollectionViewLayout is not a subclass of UICollectionViewFlowLayout, so the methods of UICollectionViewDelegateFlowLayout won't be called. When you custom NOCChatCollectionViewLayout, you should also custom delegate of it, and call the methods manually. |
Hey having an issue using the FlowDelegate method to add a footer to the collection view. It is not being called. I'm not seeing any obvious reason it wouldn't be called looking through your code, perhaps I'm missing something here. Could you shed some light on this?
Using the method
(UICollectionReusableView *)collectionView:(UICollectionView *)theCollectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)theIndexPath
(in swift) as well as registering a nib for use inviewDidLoad
. This works in other view controllers, just not in a subclass of NOCChatViewControllerThe text was updated successfully, but these errors were encountered: