bjhomer / HSImageSidebarView

A view based on the sidebar in Apple's Keynote app for iPad.
MIT License
280 stars 39 forks source link

bug report #4

Closed guoxj closed 13 years ago

guoxj commented 13 years ago

hey, thanks for your HSImageSidebarView, there is something confusing , in the example project's Portrait mode, there are 6 icon, but when it comes to Landscape mode,there are only 4 icon. :)

bjhomer commented 13 years ago

This appears to be an iOS 5 issue; it works correctly on the 4.3 simulator. It appears that on iOS 5, the scrollview isn't calling -layoutSubviews when it scrolls, so the sidebar doesn't know to add the new subviews. I'll look into it.

guoxj commented 13 years ago

fixed now,another iOS5 issue,when drag the first icon quickly move toward to the last icon, it crash. HSImageSidebarView.m line 591 [imageViews insertObject:viewBeingDragged atIndex:newRow]; reason: 2011-10-29 01:08:14.463 Sidebar[2877:f803] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSArrayM insertObject:atIndex:]: object cannot be nil'

bjhomer commented 13 years ago

K. If you'll file this in a separate issue, it'll be easier to track. I'll look at it tonight.

ghost commented 10 years ago

Hello. Merry Christmas. I am a new user of your great HSImageSidebarView code, but I see that it still crashes when I drag the 1st item quickly to the last icon. Please let me know if you fixed it or not. Thanks. Cui.