uiactionsheet


Using Viewcontroller to control tabbarController


I'm trying to use an ActionSheet (via a viewcontroller which is an item of the tabbarcontroller) to access another tab. But I don't seem to be able to do that.
Here is the scenario:
1. I click Tab 3
2. Actionsheet initiated
3. I click 'Cancel'
4. [here is what I want] - bring me back to tab 1.
How do i actually get 4 to work?
I solved it by doing the following
[[self tabBarController] setSelectedIndex:0];
You set the number according to which tab you want to go to

Related Links

Attachment action sheet hidden behind keyboard in iOS 9
Use of Actionsheet in Ionic 2
Disable WKActionSheet on WKWebView
Action sheet programatically [closed]
unrecognized selector sent to instance UIActionSheet
Using Viewcontroller to control tabbarController
ShareKit 2.0: how to add a custom NON-SHARE item in action sheet?
Fire UIActionSheet in ViewDidLoad first load only
Setting bounds for UIActionSheet?

Categories

HOME
android
cheerio
ggplot2
google-spreadsheet
character-encoding
yahoo-finance
computer-science
project
redis-sentinel
supervisor
comsol
gource
flash-player
dreamweaver
android-7.0-nougat
template-engine
soci
bourbon
asp.net-core-webapi
articulate-storyline
php-mysqlidb
comparator
ckfinder
google-cloud-print
slidetoggle
ms-access-2003
browser-sync
userdefaults
sql-server-2000
baidu-map
sharepoint-workflow
timing
ideascript
nohup
spring-mvc-test
kill
knime
strftime
facebook-social-plugins
dapper-simplecrud
servermanager
bluez
qtranslate
modelsim
yii2-user
pybrain
universal-analytics
rsa-archer-grc
renaming
branch-prediction
materialized-path-pattern
chromium-os
winusb
microstation
adafruit
mapinfo
installshield-2010
respondcms
omniauth-facebook
jnlua
baasbox
j-security-check
mmwormhole
ssis-data-flow
teaspoon
codeplex
grails-domain-class
functional-java
android-framework
rolify
inappsettingskit
mvc-editor-templates
nevron
zope.interface
rmiregistry
jsr286
isa-swizzling
box2d-iphone
convention
massive
django-paypal
twitterizer
cloudfiles
ruby-1.8
ie-compatibility-mode
dot-emacs
rowlex
web-garden
django-piston
wcf-instancing
lobo-cobra
visualj#
soappy
information-management
great-circle
idatareader

Resources

Encrypt Message