uiactionsheet


Fire UIActionSheet in ViewDidLoad first load only


I have a UIActionSheet (sheet A for short) with a switch statement of which one case: fires a 2nd view. Then in the 2nd Views Viewdidload method I fire a 2nd UIActionSheet (sheet B for short). Sheet B uses a switch statement to set the text in 4 places 2xlabels & 2xtextViews.
Now because I have sheet B fired in the viewdidload method each time i select one of sheet B case's from its switch statement it reloads the view to populate the labels and textviews but relaunches the UIActionSheet again, obviously as it is in the viewdidload.
Any suggestions on how to fire sheet b on first load only?
im thinking to use an if statement.
example
if (textView.text=#""){
//fire Action Sheet
}
any better suggestions or ideas, i read about creating a file in the viewdidload and then if file exists it would not call action sheet and if file did not exist it would?
I ened up changing my methods to fire from an IBAction instead of the viewDidLoad method

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
sonarqube
character-encoding
angular2-material
apiblueprint
package
grafana
parameters
zip
frontend
opengl-3
recordrtc
project
rtf
comsol
libusb
linear-algebra
symfony-2.8
dimensional-modeling
google-content-api
google-data-studio
mapstruct
gmm
topology
interpreter
game-theory
fractions
exchangewebservices
bringtofront
ceylon
boost-asio
volatile
scatter3d
python-2.6
complex-numbers
laravel-eloquent
browser-extension
yowsup
batching
lubridate
roblox
numpy-broadcasting
urlsession
attributeerror
jide
lampp
mongotemplate
bluez
amq
context-switch
spring-data-couchbase
materialized-path-pattern
cronexpression
flex-monkey
hadoop-2.7.2
flex4.6
dotnetnuke-7
file-uri
drawstring
jboss-tools
expectations
vorpal.js
cfchart
data-protection
cda
dbamp
redis-cluster
upx
rasterize
grgit
avisynth
dllimport
.bash-profile
wso2greg
keyup
procedural-programming
nodelist
packet-sniffers
boost-program-options
iiop
tweenlite
vsx
file-not-found
maven-scm
synapse
drupal-nodes
openargs
gtm-oauth2
poker
jquery-1.9
wimax
booksleeve
listitem
cuda-gdb
apache-whirr
box2d-iphone
procedures
drawtobitmap
photolibrary
cac
ie-compatibility-mode
jqueryform
request-headers
sun
asynchronous-wcf-call
sifr3
contentpresenter
leader
image-capture
pnrp

Resources

Encrypt Message