Regarding issue #1:
I’m only targeting iOS 8 & 9 and I tried the following
self.tableView.beginUpdates()
// Request Twitter Feed
let client = TWTRAPIClient()
self.dataSource = TWTRSearchTimelineDataSource(searchQuery: "$\(self.symbol)", APIClient: client)
self.tableView.endUpdates()
This doesn’t fix the height issues. the height issues are not because of rotation. As a matter of fact, my app is only available in landscape. This issue is there when the View is loaded. I tried to move the code above into the ViewWillLayoutSubviews() but that caused infinite amount of messages saying there is no guest session and that I should that deprecated loginGuest method.
Issue #7: reload data after self.dataSource doesn’t help as there is no completion handler now so there is no way to check if its done before reloading table.
Also if I wait long enough (LONG) the data does load (without tap/scroll) with the following error:
2015-09-11 18:27:36.918 StockSwipe[994:191850] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x00000001834d8f74 + 148
1 libobjc.A.dylib 0x0000000197f7ff80 objc_exception_throw + 56
2 CoreFoundation 0x00000001834d8ea4 + 0
3 Foundation 0x00000001844f25d8 + 88
4 Foundation 0x0000000184374a1c + 36
5 UIKit 0x0000000188b33958 + 64
6 UIKit 0x0000000188b33b9c + 548
7 UIKit 0x0000000188b33968 + 80
8 UIKit 0x0000000188a2a2d8 + 240
9 UIKit 0x0000000188b7335c + 640
10 UIKit 0x0000000188b306d4 <redacted> + 68
11 UIKit 0x0000000188b372e8 <redacted> + 28
12 UIKit 0x0000000188b3a420 <redacted> + 364
13 StockSwipe 0x00000001002c7428 +[TWTRViewUtil addVisualConstraints:toView:options:metrics:views:] + 168
14 StockSwipe 0x00000001002c7248 +[TWTRViewUtil addVisualConstraints:toView:views:] + 92
15 StockSwipe 0x00000001002b7024 -[TWTRTweetTableViewCell commonInit] + 420
16 StockSwipe 0x00000001002b6e6c -[TWTRTweetTableViewCell initWithStyle:reuseIdentifier:] + 84
17 UIKit 0x0000000188b772ec <redacted> + 500
18 StockSwipe 0x00000001002a1434 -[TWTRTimelineViewController tableView:cellForRowAtIndexPath:] + 100
19 UIKit 0x0000000188d7167c <redacted> + 688
20 UIKit 0x0000000188d717d4 <redacted> + 80
21 UIKit 0x0000000188d613d4 <redacted> + 2440
22 UIKit 0x0000000188d76364 <redacted> + 104
23 UIKit 0x0000000188b17a90 <redacted> + 176
24 UIKit 0x0000000188a2b00c <redacted> + 644
25 QuartzCore 0x0000000188231f14 <redacted> + 148
26 QuartzCore 0x000000018822cb20 <redacted> + 292
27 QuartzCore 0x000000018822c9e0 <redacted> + 32
28 QuartzCore 0x000000018822c07c <redacted> + 252
29 QuartzCore 0x000000018822bdd0 <redacted> + 516
30 QuartzCore 0x000000018825af48 <redacted> + 236
31 libsystem_pthread.dylib 0x00000001989821e8 <redacted> + 584
32 libsystem_pthread.dylib 0x0000000198981d60 <redacted> + 136
33 libsystem_pthread.dylib 0x0000000198981544 pthread_mutex_lock + 0
34 libsystem_pthread.dylib 0x0000000198981028 start_wqthread + 4
)
issue #8: Happy to hear that.
Twitter icon: I’ll email them my comments below.