ScrollableView's "removeView" method accepts either a view or an index to a view, but passing in an index to a view results in an error being raised.
2011-11-04 10:18:18.309 play[50939:1ab0b] -[__NSCFNumber krollObjectForBridge:]: unrecognized selector sent to instance 0x8c6d7a0
[ERROR] Script Error = -[__NSCFNumber krollObjectForBridge:]: unrecognized selector sent to instance 0x8c6d7a0 at app.js (line 3).
In TiScrollableViewProxy.m's removeView method, the "doomedView" is identified. But when we call self forgetProxy, we don't use the "doomedView", we use the "args", which will only be valid if a view was passed in, and not an integer.
See the following erroneous code, taken from 1.8.0 at the time of this ticket's inception:
Change those two references to "args" to "doomedView", and everything works as it should.
Drop the following in an app.js. If you get a modal error screen, the bug is present. If you don't, then everything is working as it should.