Try this code in Swift or Objective-C
Swift
self.tabBarController.selectedIndex = 1
Objective-C
[self.tabBarController setSelectedIndex:1];
More Related Contents:
- How to detect iPhone 5 (widescreen devices)?
- How can I animate the movement of a view or image along a curved path?
- How to hide uitabbarcontroller
- Black bars showing when running app on iOS 7 (4 inch retina display)
- How can I do Key Value Observing and get a KVO callback on a UIView’s frame?
- Detecting when the ‘back’ button is pressed on a navbar
- How do I accept a self-signed SSL certificate using iOS 7’s NSURLSession and its family of delegate methods for development purposes?
- UILabel updating stops during scrolling UIScrollView
- UIButton not showing highlight on tap in iOS7
- Dismissing a Presented View Controller
- Streaming mp3 audio with AVPlayer
- Detect carrier connection type (3G / EDGE / GPRS)
- How to cache content in UIWebView for faster loading later on?
- iphone app allow background music to continue to play
- Weak and strong property setter attributes in Objective-C
- iOS Low Memory Crash, but very low memory usage
- How to change the Color of text in UITabBarItem in iOS 5
- iOS Pinch Scale and Two Finger Rotate at same time
- Best ways to play simple sound effect in iOS
- What does the Xcode 4.2 preference “Support Wirelessly Connected Devices” do?
- Finding Path/Route Between two points on MapKit in iPhone
- Disable Dictation button on the keyboard of iPhone 4S / new iPad
- Could not find a storyboard named ‘Main’ in bundle
- Moving status bar in iOS 7
- How to crop the image using UIBezierPath?
- How to use iOS Reachability
- Use NSURLIsExcludedFromBackupKey without crashing on iOS 5.0
- Record audio file and save locally on iPhone
- How can I cancel an asynchronous call through NSURLConnection sendAsynchronousRequest?
- What is __NSArrayI and __NSArrayM? How to convert to NSArray?