I'm using xCode 6.2 beta 2 and tried to hide and show group programmatically but there is no method shown where i can write group.hidden=YES
or group.hidden=NO
Is there any another method for doing same?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes, there is no property for hide group in WKInterfaceGroup.
But there is same property available in WkInterfaceObject which is super class of WKInterfaceGroup.
so you can do same like[group setHidden:YES]
or[group setHidden=NO]
回答2:
If you're using a swift you can use this code:
mygroup.setHidden(true)// set true --> false if you want to show the group
回答3:
Yes, do it this way:
[group setHidden:YES];
In WatchKit you can't access properties with the dot notation.