Layout issues at TWTRTimelineViewController (Twitter SDK, iOS)

ios
issues
twitter4j

#1

TWTRTimelineViewController seems to be having some issues with layout (auto-layout I guess).

Here is a correct presentation of some Twitter timeline messages (there are photo and text below it):

Same message at iPhone 6 Plus, iOS 8.4, but orientation was changed from portrait to landscape:

Issues: the photo was cropped and text is missing.

Console output:

    Unable to simultaneously satisfy constraints.
	Probably 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. 
(
    "<NSLayoutConstraint:0x7f82b3937bd0 V:[UIImageView:0x7f82b3930cb0(36)]>",
    "<NSLayoutConstraint:0x7f82b3965c90 V:|-(0)-[TWTRTweetView:0x7f82b392a390]   (Names: '|':UITableViewCellContentView:0x7f82b393dd10 )>",
    "<NSLayoutConstraint:0x7f82b39632f0 V:[TWTRTweetView:0x7f82b392a390]-(0)-|   (Names: '|':UITableViewCellContentView:0x7f82b393dd10 )>",
    "<NSLayoutConstraint:0x7f82b3924fe0 V:|-(14)-[UIImageView:0x7f82b3938d20]   (Names: '|':TWTRTweetView:0x7f82b392a390 )>",
    "<NSLayoutConstraint:0x7f82b3925060 V:[UIImageView:0x7f82b3938d20(11)]>",
    "<NSLayoutConstraint:0x7f82b3923430 V:[UIImageView:0x7f82b3938d20]-(12)-[UIImageView:0x7f82b3930cb0]>",
    "<NSLayoutConstraint:0x7f82b3923480 V:[UIImageView:0x7f82b3930cb0]-(>=14)-|   (Names: '|':TWTRTweetView:0x7f82b392a390 )>",
    "<NSLayoutConstraint:0x7f82b3964a20 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7f82b393dd10(86.6667)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7f82b3923430 V:[UIImageView:0x7f82b3938d20]-(12)-[UIImageView:0x7f82b3930cb0]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

And same issues at iPad Air 2, iOS 9.1, but even right after the app launch in portrait (no orientation changes were made):

Same issues here and console output.

Additional details about my application: it uses storyboard with auto layout enabled, TWTRTimelineViewController integrated into the app UI via container view.

Twitter 1.12.1
Fabric 2.0.3


More flexibility for TWTRTimelineViewController
#2

Thanks for sharing this @vk_arcadian, we’re digging into these.


#3