I was tinkering with the WKInterface
and Apple Watch apps and was just wondering how to add a subview like a UIButton
or UILabel
.
It seems that
UIButton *whatever = [[UIButton alloc]init];
[self.view addsubview:whatever];
does not work for the iWatch extension. Mainly the [self.view addsubview: ]
part doesnt seem to work.
Does anyone know how to add a view programatically for apple watch or do I have to use the interface builder and drag and drop these objects.