I want to check what the current view is objective c (in cocoa touch)
Could I do something like this?
if (viewA == current view) {
run code here
}
Thanks
I want to check what the current view is objective c (in cocoa touch)
Could I do something like this?
if (viewA == current view) {
run code here
}
Thanks
if you are in a Controller just do the following
currentView = self.view;
UIView *view1;
UIView *view2;
UIView *view3;
self.view = view1;
if (self.view==view1){
//do something
}