{"action":"created","issue":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1303","labels_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1303/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1303/comments","events_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1303/events","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1303","id":115372342,"number":1303,"title":"Compatibility between JSQMessagesViewController and UIRefreshControl","user":{"login":"modiodio","id":4094422,"avatar_url":"https://avatars.githubusercontent.com/u/4094422?v=3","gravatar_id":"","url":"https://api.github.com/users/modiodio","html_url":"https://github.com/modiodio","followers_url":"https://api.github.com/users/modiodio/followers","following_url":"https://api.github.com/users/modiodio/following{/other_user}","gists_url":"https://api.github.com/users/modiodio/gists{/gist_id}","starred_url":"https://api.github.com/users/modiodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modiodio/subscriptions","organizations_url":"https://api.github.com/users/modiodio/orgs","repos_url":"https://api.github.com/users/modiodio/repos","events_url":"https://api.github.com/users/modiodio/events{/privacy}","received_events_url":"https://api.github.com/users/modiodio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T20:55:39Z","updated_at":"2015-11-06T03:42:41Z","closed_at":null,"body":"Hello Guys,\r\n\r\nI am Using JSQMessagesViewController (7.2.0)\r\nI Have a bug when I use UIRefreshControl with JSQMessagesViewController to load the ealier message !  The code I have is below\r\n\r\n    @interface Chat() {\r\n    UIRefreshControl *refreshControl;\r\n    }\r\n    @end\r\n    \r\n    @implementation Chat\r\n    \r\n    - (void)viewDidLoad {\r\n            refreshControl = [[UIRefreshControl alloc] init];\r\n            [refreshControl addTarget:self action:@selector(loadNextMessages)    forControlEvents:UIControlEventValueChanged];\r\n             [self.collectionView  addSubview:refreshControl];\r\n\r\n    }\r\n    @end\r\n\r\n\r\n\r\nIt work very well but I get the warning below \r\n\r\n```\r\nsatisfy constraints.\r\n\tProbably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) \r\n(\r\n    \"<NSLayoutConstraint:0x17029fb80 V:[JSQMessagesLabel:0x155e9d510(20)]>\",\r\n    \"<NSLayoutConstraint:0x170480820 V:[JSQMessagesLabel:0x155e9d6e0(20)]>\",\r\n    \"<NSLayoutConstraint:0x17429af90 V:[JSQMessagesCellTextView:0x156a77c00]-(0)-|   (Names: '|':UIView:0x155e9eb40 )>\",\r\n    \"<NSLayoutConstraint:0x17429b030 V:|-(0)-[JSQMessagesCellTextView:0x156a77c00]   (Names: '|':UIView:0x155e9eb40 )>\",\r\n    \"<NSLayoutConstraint:0x17429b350 V:[JSQMessagesLabel:0x155d8a0d0(0)]>\",\r\n    \"<NSLayoutConstraint:0x17429b440 V:|-(0)-[JSQMessagesLabel:0x155e9d510]   (Names: '|':UIView:0x155e9ea30 )>\",\r\n    \"<NSLayoutConstraint:0x17429b530 V:[JSQMessagesLabel:0x155e9d510]-(0)-[JSQMessagesLabel:0x155e9d6e0]>\",\r\n    \"<NSLayoutConstraint:0x17429b5d0 V:[JSQMessagesLabel:0x155e9d6e0]-(0)-[UIView:0x155e9eb40]>\",\r\n    \"<NSLayoutConstraint:0x17429b760 V:[JSQMessagesLabel:0x155d8a0d0]-(0)-|   (Names: '|':UIView:0x155e9ea30 )>\",\r\n    \"<NSLayoutConstraint:0x17429b7b0 V:[UIView:0x155e9eb40]-(0)-[JSQMessagesLabel:0x155d8a0d0]>\",\r\n    \"<NSAutoresizingMaskLayoutConstraint:0x17429d420 h=--& v=--& V:[UIView:0x155e9ea30(38)]>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x17429af90 V:[JSQMessagesCellTextView:0x156a77c00]-(0)-|   (Names: '|':UIView:0x155e9eb40 )>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n2015-11-05 21:32:55.312 LouBess[3463:1345463] Unable to simultaneously satisfy constraints.\r\n\tProbably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) \r\n(\r\n    \"<NSLayoutConstraint:0x17029fb80 V:[JSQMessagesLabel:0x155e9d510(20)]>\",\r\n    \"<NSLayoutConstraint:0x170480820 V:[JSQMessagesLabel:0x155e9d6e0(20)]>\",\r\n    \"<NSLayoutConstraint:0x17429b350 V:[JSQMessagesLabel:0x155d8a0d0(0)]>\",\r\n    \"<NSLayoutConstraint:0x17429b440 V:|-(0)-[JSQMessagesLabel:0x155e9d510]   (Names: '|':UIView:0x155e9ea30 )>\",\r\n    \"<NSLayoutConstraint:0x17429b530 V:[JSQMessagesLabel:0x155e9d510]-(0)-[JSQMessagesLabel:0x155e9d6e0]>\",\r\n    \"<NSLayoutConstraint:0x17429b5d0 V:[JSQMessagesLabel:0x155e9d6e0]-(0)-[UIView:0x155e9eb40]>\",\r\n    \"<NSLayoutConstraint:0x17429b760 V:[JSQMessagesLabel:0x155d8a0d0]-(0)-|   (Names: '|':UIView:0x155e9ea30 )>\",\r\n    \"<NSLayoutConstraint:0x17429b7b0 V:[UIView:0x155e9eb40]-(0)-[JSQMessagesLabel:0x155d8a0d0]>\",\r\n    \"<NSAutoresizingMaskLayoutConstraint:0x17429d420 h=--& v=--& V:[UIView:0x155e9ea30(38)]>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x170480820 V:[JSQMessagesLabel:0x155e9d6e0(20)]>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n```\r\n\r\nDo you have an idea ! Thanks in advance ! \r\n"},"comment":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/comments/154276577","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1303#issuecomment-154276577","issue_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1303","id":154276577,"user":{"login":"xzenon","id":2015453,"avatar_url":"https://avatars.githubusercontent.com/u/2015453?v=3","gravatar_id":"","url":"https://api.github.com/users/xzenon","html_url":"https://github.com/xzenon","followers_url":"https://api.github.com/users/xzenon/followers","following_url":"https://api.github.com/users/xzenon/following{/other_user}","gists_url":"https://api.github.com/users/xzenon/gists{/gist_id}","starred_url":"https://api.github.com/users/xzenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzenon/subscriptions","organizations_url":"https://api.github.com/users/xzenon/orgs","repos_url":"https://api.github.com/users/xzenon/repos","events_url":"https://api.github.com/users/xzenon/events{/privacy}","received_events_url":"https://api.github.com/users/xzenon/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T03:42:41Z","updated_at":"2015-11-06T03:42:41Z","body":"I had the similar issue and fixed by using **jardamach**'s solution https://github.com/jessesquires/JSQMessagesViewController/issues/817#issuecomment-112210938.\r\nTry and check if it helps."}}