uiactionsheet

very weird error of uiactionsheet clicks not working on the bottom of the actionsheet

i have a uiactionsheet and the buttom button doesnt work correctly the first time i press it, or the second, but only numerous times after trying. I tried removing the cancel button at the bottom and leaving a button title however none of these steps solved the problem. This is the code i am using: UIActionSheet *aSheet = [[UIActionShee...

move ActionSheet portrait to landscape mode iphone?

In my app button presents on navigationcontroller when I run app in portrait mode as well as landscape mode and clicked button due this it shows actionsheet according to their mode but when i clicked button in portrait mode and then truns the simulator in landscape mode and its also occur this same situation in viseversa form action shee...

iPhone UIActionSheet with UISwitch and UITextField

I'm just looking for advice with this as I have no idea where to start but I think a UIActionSheet is probably best. What I'd like to have is a pop up window (in my head I picture it as being translucent and dark gray). It will not take up the whole screen and the view underneath will still be visible. In the pop up section there will...

UIActionSheet won't display properly in landscape mode

Hi, I am trying to display a UIActionsheet in my application. It works perfectly in portrait mode but when I try to have it display in a landscape orientation it still slides in from the bottom. However it no longer uses buttons and displays with the picker control like it is in landscape mode. Its just in the wrong position. I don't...

UIActionSheet throwing NSInvalidArgumentException

Hello I got a UIViewController implementing UINavigationControllerDelegate and when i try to add UIActionSheetDelegate , it gives exception "NSInvalidArgumentException" Here is my code: RootViewController.h @interface RootViewController : UIViewController <UINavigationControllerDelegate,UIActionSheetDelegate> { } -(IBAction) openAct...

UIActionSheet Controller crashed on iPad and Works Fine on iPhone

I've been trying to work a UIActionSheet into my App. The idea is, if you exited the app in a certain state, it would popup on launch and ask you if you'd like to continue or reset. Here's the code: NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; continueYesNo = [prefs boolForKey:@"keyContinueMeeting"]; if (continueYes...

Passing info to a delegate from a UIActionSheet

My understanding about passing data back to a delegate completely revolves around making a new view controller and having it conform to a protocol. I am trying to get a time input back from a UIDatePicker set with the UIDatePickerModeCountDownTimer mode and I am running into issues. Inside of Main1.m I create a UIActionSheet *action, ...

Error when using UIActionSheet and Three20

In a project I'm using Three20 for some of the code (not using the TTNavigator or some advanced features, only a few things). When I try to create an UIActionSheet, I get an EXC_BAD_ACCESS error. The code that triggers it is as follows (on a UIViewController) - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; ...

UIDatePicker return value data type question

I want to pass back data from a UIDatePicker that is setup like this: UIDatePicker *pickerView = [[UIDatePicker alloc] init]; pickerView.datePickerMode = UIDatePickerModeCountDownTimer; The picker mode is set to be the count down timer. What type of data type do I need to pass back to the delegate? I was thinking it would be somethi...

Actually using UIDatePickerModeCountDownTimer as a timer

I am just trying to make a timer. I would like to use UIDatePickerModeCountDownTimer mode of the UIDatePicker, so that when the user simply selects say 15 mins in the picker, they are passed back to a screen that shows the value of 15 mins in a label that they can then count down from. As I have tried to get the value from the DatePicke...

UIActionSheet Crashes on iPad / not iPhone

When I look in the console I get this message 2010-09-18 17:04:05.284 Wasted Time[8998:207] *** Assertion failure in -[UIActionSheet showInView:], /SourceCache/UIKit_Sim/UIKit-1145.66/UIAlert.m:7073 2010-09-18 17:04:05.286 Wasted Time[8998:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'I...

UIActionSheet ipad and arroy position?

To show an UIActionSheet on the iPad I did this [actionSheetX showFromRect:RectX inView:myView animated:YES]; And the arrow of the popover is Down, can'I change this position to Left, Up, etc? Like when using a normal popover? Thanks lbadias ...

UIImagePickerController creation hangs for several seconds

I'm trying to show a UIImagePickerController after a button is clicked in an UIActionSheet. The code is straightforward. However, the call to [[UIImagePickerController alloc] init] is hanging for several seconds before it finishes. I don't see this behavior in the simulator, but am seeing it on an iPod and iPhone. Here are the UIActionS...

popViewController not working when called from UIActionSheet

I encountered a strange problem when trying to go back to the previous view using an UIActionSheet. This is my code (stripped down to show the relevant part): - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { /* Doing some stuff here */ [self.navigati...

Need Help Adding UIViewController Programatically

I need to load an action sheet on a GLSprite derived game. I tried adding a UIViewController but when I display the actionsheet none of my touches are registering, and I can't figure out how to close the action sheet and switch the view back to my game? Should I only create a UIViewController when its needed, or all of the time? Rath...

How do I show a view similar to UIActionSheet, on top of everything that's on the screen

I have a view with a UITextField which is the first responder. I'm trying to add a semi-transparent view with an activity indicator that would cover everything. Right now the code looks something like this: CATransition *animation = [CATransition animation]; [animation setType:kCATransitionFade]; [self.window.layer addAnimation:animati...

Dismiss UI action sheet - crash

Hi guys, I have a "again" ;-) a problem i can't solve. My app launches on a tableView. When i select a cell, i go to the "detailView". On this view i add two buttons on the toolbar this way : UIToolbar* tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 115, 44.01)]; // tab where buttons are stored NSMutableArray* buttons = ...

Wrong UIActionSheet layout in popover.

Hello! I’ve got an UIActionSheet with a single button that I show in a popover. In landscape mode there is a plenty of space around the popover, so that it displays with an arrow in the middle and everything is fine: In portrait the popover has to be displayed with an arrow on the right side: Now the button looks a little bit too l...

iPhone, how can I make the font size smaller in actionsheet buttons?

I want to make the font size smaller for the text in the buttons of my action sheet as my text is longer than the width. How can I make the font size smaller? I'm guessing as you can add things like picker views to action sheets that I may need to add my own buttons to the action sheet, if so how ? I need an example. EDIT: I've made ...

Views and buttons unresponsive to touches after rotation

I am coding against iOS 3.0 and I am trying to add rotation (landscape) support to my app. Everything about the rotation was easy enough. However, after rotation to landscape mode from portrait, the right-third of the screen (480-320) is unresponsive to all events (touches, drag, etc.). I've verified that the key window is receiving th...