[TIMOB-1614] iOS - scrollView.removeView() on a perviously removed view results in a view not specified being removed
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-01T10:31:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Backlog |
| Components | iOS |
| Labels | defect, ios, scrollview |
| Reporter | Thomas Huelbert |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:57:23.000+0000 |
| Updated | 2011-11-01T10:31:54.000+0000 |
Description
.js attached
1.run the file, and note there are 3 views.
2.tap "remove view 3" note the view is removed
3.tap the button again
results:view 1 seems ot have been removed (buttons are gone, black screen with a single view indicated)
expected - as on android, this should silently fail on the second press
Attachments
| File | Date | Size |
|---|---|---|
| removescrollview.js | 2011-04-15T02:57:24.000+0000 | 1164 |
On Android I can confirm that using removeView() without any arguments has no effect, which is what is expected.
Try the following usecase code, that works fine on Android.
https://gist.github.com/46ff47010948f9d8f506">https://gist.github.com/46ff47010948f9d8f506
Bug is not valid, does not reproduce in: TiMOB sdk version: 1.8.0.v20111031173855 Studio version: 1.0.6.201110251616 OS version: Mac OS X Lion Devices tested on: ipad 4.3.5