uialertview

UIAlertView keyboard overlay textview issue

回眸只為那壹抹淺笑 提交于 2020-01-06 14:48:24
问题 I have found this code: CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 130.0); [myAlertView setTransform:myTransform]; But seems it want move up my alert to the top. How can I move up alert view to the top? Set frame does not help as well. alerView.frame = rect; 回答1: You can't, if you're using a UIAlertView . From the apple docs: Appearance of Alert Views You cannot customize the appearance of alert views. else where.... Subclassing Notes The UIAlertView class is

UIAlertView showing up only after it's dismissed

萝らか妹 提交于 2020-01-06 09:56:23
问题 I've been trying to figure this out for 2 days now, and before anyone posts another stackoverflow question, I've read them all and none of them cover my problem exactly: I have a CoreData app that updates dynamically. Now during the update I want an UIAlertView to pop up saying that an update is being downloaded. So here's the important code: AppDelegate: - (void)applicationDidBecomeActive:(UIApplication *)application { [myUpdater checkForUpdatesInContext:self.managedObjectContext]; } _

Using UIAlertView while waiting for calculations/processing data

拈花ヽ惹草 提交于 2020-01-05 02:52:29
问题 I've set up my iphone application in a tab layout, and I would like to perform some rather intense calculations (can take several seconds to get a result) when the user selects one of the tabs. Originally, it would appear the iphone would just hang on the original tab while doing the number crunching. I tried adding an UIAlertView as some eye-candy, but I'm getting a fade to grey for a few seconds, then after the computations are done, a quick appearance/disappearance of the View. What I want

Prevent AlertView dismissal

走远了吗. 提交于 2020-01-03 20:14:58
问题 Can anyone help me in preventing dismissal of alertview on its button click event?? I have a textview as a subview of my alertView and i dont want to dismiss it if textview's value is nil. 回答1: That might be against HIG Guidelines to NOT to dismiss an UIAlertView. WORKAROUND : I don't know what goes on in your app, but to acheive this thing, what you could do is dismiss the AlertView and then check if textView's text is set or not. If it is set to nil, then bring up the alertview again! 回答2:

Multiple AlertViews - Remove the alertview that is behind another alertview

会有一股神秘感。 提交于 2020-01-03 04:34:05
问题 I think this scenario should be weird one but i am stuck up with this. I am having a view lets say View1, which will show one or more alertviews.Alerts are stacked one above the other if they are untouched. The problem comes here. If i click the top most alert ,it should take me to a complete new view lets say View2. And it does. Now i am getting the remaining alerts still shown in View2. I do not want this to happen . How can i auto dismiss the pending alerts created from View1 which are

iOS 8 broke UIPickerView in UIActionSheet

烂漫一生 提交于 2020-01-01 12:11:04
问题 I was presenting a picker in UIActionSheet very simply up until iOS 8. Now, it seems they have broken that capability with the latest update. It was never supported and the practice was discouraged in the docs all along. Presumably the entire UIActionSheet capability is deprecated and will not be supported going forward. The documentation says to use UIAlertController instead. I have tried switching to the UIAlertController and actually found what I initially expected would be a nicer

Orientation without animation giving weird result when UIAlertView is present

房东的猫 提交于 2020-01-01 08:48:11
问题 I am facing a weird problem here. For some reason I am disabling the animation during orientation change in my view controller using [UIView setAnimationsEnabled:NO]; But when the alert view is present and if I change the orientation then it is giving weird result. The attached screen shot is when I change the orientation to landscape. Please note: I am using standard UIAlertView and it is default overlay which is shown when the alert view is present and there is no customisation involved

Notify User about new update of application in app store as a alert and automatically install updated version in iPhone?

假装没事ソ 提交于 2020-01-01 06:33:44
问题 Currently my application with version 1.1 is available in app store. Current Scenario: when i update new version update is shown in app store when user goes to app store. Required: As soon as user starts application alert should be popped up and if new version is available in app store it should automatically install that if user clicks OK . Please suggest me the way to do this. 回答1: You can't make it install automatically, you can send the user to the app store app with your itunes app url.

dismissing a UIAlertView programmatically

不问归期 提交于 2020-01-01 04:28:11
问题 I need help on dismissing a UIAlertView programmatically. Currently I have this UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"title" message:@"message" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]; then later on I call this [alert1 dismissWithClickedButtonIndex:0 animated:NO]; but nothing happens. 回答1: You need to set two things. 1. include your .h file : <UIAlertViewDelegate> 2. please follow below implementation... UIAlertView *alert1 = [[UIAlertView alloc

Where to find a clear explanation about swift alert (UIAlertController)?

偶尔善良 提交于 2019-12-31 08:47:27
问题 Couldn't find a clear and informative explanation for this. 回答1: After searching a while on a subject I didn't find a clear explanation , even in it's class reference UIAlertController Reference It is ok, but not clear enough for me. So after collecting some peaces I decided to make my own explanation (Hope it helps) So here it goes: UIAlertView is deprecated as pointed out : UIAlertView in Swift UIAlertController should be used in iOS8+ so to create one first we need to instantiate it, the