jessesquires / JSQMessagesViewController

An elegant messages UI library for iOS
https://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/
Other
11.14k stars 2.81k forks source link

How to use UIRefreshControl #775

Closed tomojiro1125 closed 9 years ago

tomojiro1125 commented 9 years ago

I used this below code about UIRefreshControl, but this error message is shown. Then, how can I add UIRefreshControll ? Or should I add other github code about UIRefreshControl ?

_CODE_ [self.view addSubview:refreshControl];

_Error message_ *\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIRefreshControl may only be managed by a UITableViewController'

Sincely Regards,

mohpor commented 9 years ago

If you are doing it in your subclass of JSQMessagesViewController try this instead:

    [self.collectionView addSubview:refreshControl];
tomojiro1125 commented 9 years ago

Hi, mophor Thanks to your kindness, I could solve the issue. Thank you so much.

mohpor commented 9 years ago

Glad I could help