uiactionsheet


Setting bounds for UIActionSheet?


I have a UIActionSheet and would like to adjust (increase) its width to accommodate the text of the buttons that it contains. The width of these buttons is determined at runtime and could change during runtime.
I have mucked around with [[actionSheet superview] superview] to get the containing UIPopoverView, but changing its frame doesn't yield desired results. And, mostly, this just seems an extremely fragile way to go.
I tried [actionSheet sizeToFit] without any noticeable effect.
So, I am hoping that I have overlooked some obvious method for adjusting the size of the UIActionSheet/UIPopoverView.
Thanks.
It doesn't work, as you have probably figured out. The common solution is to create a custom UIViewController and display it using UIViewController's presentModalViewController, which can give you a nice slide up transition, much like how a UIActionSheet appears.
But that solution is missing something. A UIActionSheet slides up, but not all the way, leaving a semi-transparent covering over the parent view. There is a brilliant detailed tutorial with code and project which will try to show you how to display a custom view with this same effect.
http://www.nearinfinity.com/blogs/andrew_homeyer/display_a_custom_uiview_like_a.html
I wish i made this tutorial before this guy made it! he got there before me
PK
that can be done easily
actionSheet.frame = cgrectmake(0,0,200,300);

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
uml
xml
delphi-7
codenvy
case
socket.io
bitbucket-api
3d-reconstruction
zip
jtextpane
octave
project-intu
alamofire
speech-synthesis
enterprise-architect
flatpak
searchview
job-scheduling
standards
android-7.0-nougat
swagger-2.0
replication
ag
kendo-mobile
guzzle
dpdk
flask-sqlalchemy
tiki-wiki
delimiter
soot
user-defined-functions
corenlp-server
zend-debugger
quickfixj
catch-unit-test
roblox
sharepoint-workflow
salesforce-communities
graphhopper
loading
news
signals-slots
tasm
watchface
apache-directory
stylecop
httr
openal
builder
hammer.js
yii2-api
stdmap
qtranslate
tinkerpop
semantic-logging
cup
oozie-coordinator
gpg-signature
google-photos
gameplay-kit
baidu
stripe-connect
cronexpression
mapxtreme
tinkerpop3
beamer
firebase-security
mediametadataretriever
angular-ui-typeahead
turbo-prolog
false-sharing
httpruntime.cache
mobiledoc-kit
state-restoration
concurrentmodification
toran-proxy
java-money
text-search
branch-and-bound
osc
fits
gamekit
at-job
showdialog
strawberry-perl
verold
reflector
radiant
qscrollarea
visual-studio-express
scringo
cnf
insert-id
extreme-programming
paginator
mapping-by-code
isa-swizzling
creole
request-headers
cldc

Resources

Encrypt Message