We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c4795 commit 0c76285Copy full SHA for 0c76285
app/components/example/touch.vue
@@ -11,7 +11,8 @@
11
12
<script>
13
import { log } from 'util';
14
-import { Color } from 'color';
+//import { Color } from 'color';
15
+import { Color, layout } from 'tns-core-modules/ui/core/view';
16
export default {
17
data () {
18
return {
@@ -33,7 +34,8 @@ export default {
33
34
//btn.ios.frame = CGRectMake(5, 5, 5, 5)
35
//btn.ios.showsTouchWhenHighlighted = 'YES';
36
//btn.ios.ButtonType = 'custom';
- btn.ios.setTitleColor = new Color('red');
37
+ //btn.ios.setTitleColor = new Color('red');
38
+ btn.ios.setTitleColorForState(new Color('red').ios,UIControlStateNormal);
39
let title = btn.ios.currentTitle;
40
console.log('标题', title);
41
let titleColor = btn.ios.currentTitleColor
0 commit comments