Skip to content

Commit 0c76285

Browse files
committed
debug
1 parent 84c4795 commit 0c76285

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/components/example/touch.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
<script>
1313
import { log } from 'util';
14-
import { Color } from 'color';
14+
//import { Color } from 'color';
15+
import { Color, layout } from 'tns-core-modules/ui/core/view';
1516
export default {
1617
data () {
1718
return {
@@ -33,7 +34,8 @@ export default {
3334
//btn.ios.frame = CGRectMake(5, 5, 5, 5)
3435
//btn.ios.showsTouchWhenHighlighted = 'YES';
3536
//btn.ios.ButtonType = 'custom';
36-
btn.ios.setTitleColor = new Color('red');
37+
//btn.ios.setTitleColor = new Color('red');
38+
btn.ios.setTitleColorForState(new Color('red').ios,UIControlStateNormal);
3739
let title = btn.ios.currentTitle;
3840
console.log('标题', title);
3941
let titleColor = btn.ios.currentTitleColor

0 commit comments

Comments
 (0)