Hi,
How would I implement and declare a "view addsubview:" to an external .mm? Do I need to create an empty view first or is there a way to make a self.view?
Cheers
Pi
view addsubview
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Solved: view addsubview
Monte Goulding was helpful in providing the following code:
remember to also add in the declaration:
Code: Select all
UIView * tView;
LCInterfaceQueryView(&tView);
if (tView) {
[tView addSubview:mySubview];
}
Code: Select all
#include <LiveCode.h>