[AC-476] iOS: 5.1.x Ti.UI.ActivityIndicatorStyle favored, but fails
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-10-27T05:54:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Sebastian Klaus |
Assignee | Shak Hossain |
Created | 2015-10-21T08:56:49.000+0000 |
Updated | 2015-10-27T05:54:02.000+0000 |
Description
I get the warning: Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN DEPRECATED in 5.1.0, in favor of Ti.UI.ActivityIndicatorStyle.PLAIN.
But using Ti.UI.ActivityIndicatorStylePLAIN instead of Ti.UI.iPhone.ActivityIndicatorStyle.DARK causes crash
TypeError: undefined is not an object (evaluating 'Ti.UI.ActivityIndicatorStyle.PLAIN')
Hello, i have tested this issue in SDK 5.1.0.v20151023172822. I have got the warning when i use "Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN". Now using "Ti.UI.ActivityIndicatorStyle.PLAIN" for iOS seems to work fine. The app didn't crash. I am using the sample code in the documentation link [here](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ActivityIndicator). Thanks.
Don't know why, but in the newest 5.2.x it works without crashing. Issue can be closed. Thanks