uialertview

Obj. C - QR Reading application runs too slow

不羁岁月 提交于 2019-12-25 04:14:22
问题 I made an QR Code reading application with AVFoundation by tutorial on this site (tutorial of Appcoda). After reading QR code, the app shows an UIAlertView. But it takes nearly 2 minutes (sometimes more than 3mins). I'll paste the whole ViewController.m file here. I hope it is enough. (UIAlertView is in captureOutput method) // // ViewController.m // Yuvio // // Created by İhsan Batuğhan YILMAZ on 29/08/15. // Copyright © 2015 Farabius. All rights reserved. // #import "ViewController.h"

Referring to an NSString in output of UIAlertView?

懵懂的女人 提交于 2019-12-25 04:09:04
问题 I have an NSString , testString which is set to a value in my app. Then as a response to a button press in UIAlertView I have the following code: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { NSLog(@"String: %@", testString); } } But for sme reason, this always causes the app to crash. I can't seem to figure out why. 回答1: Probably you create your string with one of convenience methods and don't retain it, so when it comes to

wait_fences: failed to receive reply: 10004003 - what?

落花浮王杯 提交于 2019-12-25 03:57:49
问题 Been getting this odd error. heres the deal - in the below method i have an alert view come up, take a U/N and PW, then atempt to start another method. The method -postTweet does not get activated I just get this error in console wait_fences: failed to receive reply: 10004003 Which is really odd - as ive never seen it before - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if (alertView == completeAlert ) { if (buttonIndex ==1) { passPromtAlert = [

wait_fences: failed to receive reply: 10004003 - what?

三世轮回 提交于 2019-12-25 03:57:49
问题 Been getting this odd error. heres the deal - in the below method i have an alert view come up, take a U/N and PW, then atempt to start another method. The method -postTweet does not get activated I just get this error in console wait_fences: failed to receive reply: 10004003 Which is really odd - as ive never seen it before - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if (alertView == completeAlert ) { if (buttonIndex ==1) { passPromtAlert = [

iOS Objective-C wrap text of UITextField in UIAlertView and dynamically adjust height based on content

可紊 提交于 2019-12-25 03:22:21
问题 I have a UIAlertView with the alertViewStyle of UIAlertViewStylePlainTextInput . I'm trying to find a way to make the UITextField of the UIAlertView adjust its height and wrap its text based on its content as the user types. To be quite honest, I haven't the slightest clue how to do this. Here is some of my code: -(void)updateTicket:(id)sender { UIButton *sndr = (UIButton*)sender; int index = sndr.tag; UIAlertView *alert = [[UIAlertView alloc] init]; [alert setTag:-7]; [alert setDelegate:self

Alert View Not functioning

时光怂恿深爱的人放手 提交于 2019-12-25 02:58:42
问题 I have a button and the button sends a call to webservice and returns some values. I want to show an alert box without buttons until the value returns from webservice. But the alertWait is displaying after receiving the values. i tried using setting up a function for alert and calling in from the start of the button but that too displays at the end of receiving values. Where am i going wrong here is my code. - (IBAction)UploadButton:(id)sender { // Initializtion of some elements UIAlertView

Show the content of push notification in UIAlertView

若如初见. 提交于 2019-12-25 02:02:43
问题 Hi Im currently developing an app where i have push notifications activated. I use parse.com. I have got it working so far that i can send a notification and the device receives it and i also get a badge on the app. And i have set an AlertView when you enter the app from the notification. But i dont know how to display the text of the push notification in the UIAlertView. And i also want the badge to disappear when you've viewed the message. Here is the code Im using: - (void)application:

alertView:didDismissWithButtonIndex: message sent to deallocated instance

你。 提交于 2019-12-25 02:01:07
问题 The problem is only happening with iOS4.3. I'm using ARC and my Base SDK is iOS6. In -viewDidAppear of my view controller, I check if this is the first time the app has been started and if so, then I create and show a UIAlertView. I assign that UIAlertView to a strong property on the view controller and set self as the UIAlertView delegate. self.uiAlertView = [[UIAlertView alloc] initWithTitle:@"Welcome!" message:messageString delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"View

UIAlertController disappearing since iOS 13

跟風遠走 提交于 2019-12-25 01:25:14
问题 I have the following function that pops up a UIAlert which allows the user to update their Haptic Feedback setting: - (void)requestHapticSetting{ UIWindow *alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; alertWindow.rootViewController = [[UIViewController alloc] init]; alertWindow.windowLevel = UIWindowLevelAlert + 1; [alertWindow makeKeyAndVisible]; if(isHapticOn){ hapticMessage = @"Haptic feedback is currently\nturned ON.\nPlease update preference."; } else {

UIAlertView textfield capture onchange

荒凉一梦 提交于 2019-12-25 00:21:10
问题 I'm trying to implement custom AlertView. The idea is to have alertview with textfield and cancel button. What i can't do is to check textfield live for entered characters. I know i can do it using – alertViewShouldEnableFirstOtherButton: but i don't want another button. I wish to do the same just without button. In android you can add listeners to textfields onchange. Tried to do it using this uitextfield function, but it doesn't get called live or maybe i'm using it in a wrong way. - (BOOL