objective c - Detect rootcontroller in iphone sdk -


i have using 2 types of controller in application i.e. navigationcontroller , presentviewcontroller. how can detect base controller @ instance through code i.e using navigation or presentviewcontroller transist 1 viewcontroller viewcontroller?

try take rootviewcontroller of navigation:

uiviewcontroller *topviewcontroller = [self.navigationcontroller topviewcontroller];  

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -