[TIMOB-2611] iOS: className and classNames unsupported
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | iOS |
Labels | feature, ios, iphone, release-1.6.0, rplist |
Reporter | Kevin Whinnery |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:24:44.000+0000 |
Updated | 2012-08-03T11:18:25.000+0000 |
Description
iOS lacks the className
and classNames
options available on Android for JSS. Because of this, I would
assume iOS also lacks the addClass
function available
on Android for JSS classes as well, which is also a very important
feature.
Assigning to Steve to start looking at this or alternately discuss and delegate the R&D to Blain.
Need a description of what these features are and how they work in Android because all that comes up on google is refs to Titanium.
From Marshall, who implemented this for Android:
To get started, you basically just need to create a ".jss" file that matches the js file you need styles for. For example, to use styles in app.js, you'd create a file called app.jss. To support medium density specific styles, create "...jss", in other words: app.android.medium.jss or app.android.high.jss
(from [af9e7fbbb60e9fcce19dea99b3707be199499e18]) [#2611 state:fixed-in-qa] Changes to recognize className on iOS. Special thanks to Marshall for doing almost all the work for me. https://github.com/appcelerator/titanium_mobile/commit/af9e7fbbb60e9fcce19dea99b3707be199499e18"> https://github.com/appcelerator/titanium_mobile/commit/af9e7fbbb60e...
To test this bug:
[INFO] Titanium SDK version: 1.6.0 (02/02/11 07:59 a632082) emulator 4.2 and ipod touch 4GT
rollback wrong update
it seems className parameter is unsupported again on iOS6... getting a lot of problems...