Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing the BlockAlertView on the iPad simulator #67

Open
lpmacdevelopers opened this issue Sep 26, 2013 · 4 comments
Open

Not seeing the BlockAlertView on the iPad simulator #67

lpmacdevelopers opened this issue Sep 26, 2013 · 4 comments

Comments

@lpmacdevelopers
Copy link

Hello,

I've been trying to resolve this issue with the BlockAlertView component, which doesn't display any text or render a background when invoked. All that is seen are two sets of three dots in the middle of the screen.

My investigations have revealed that in the "show" method, the background image is being set by using the format "alert--button.png" for the image file name, but the resultant image object has a nil value. I can confirm that the image resides in the file system and in the Resources sub folder. The Pods-resources.sh file also has this file with the correct path in the "install_resource" method call.

Any pointers in the right direction will surely be helpful.

Thanks
Ashley

updatehostscreen_withinvisiblealert_cropped

@TopherTimeMachine
Copy link

Is this related to the UIBarPositioningDelegate in IOS7? I've had to update several apps because of this.

I had to make the view controller handle UIBarPositioningDelegate

And add something like the following..

  • (UIBarPosition)positionForBar:(id )bar {
    // update any view here.
    return UIBarPositionTopAttached;
    }

@lpmacdevelopers
Copy link
Author

I don't think so.

All I'm doing is this:
BlockAlertView blockAlert = [BlockAlertView alertWithTitle:@"Wait" message:@"Please consider carefully, are you 100% sure you would like to update the host URL?"];
[blockAlert addButtonWithTitle:@"Ok" block:^{
NSString *urlRegEx =@"(http|https)://((\w)
|([0-9])|([-|])_)+(.|/)+";
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
if ([urlTest evaluateWithObject:txt_hostUrl.text]) {
[[[SharedVars sharedInstance] settings] setHostURL:txt_hostUrl.text];
lbl_hostUrl.text = [[[SharedVars sharedInstance] settings] hostURL];
[[SharedVars sharedInstance] saveMR_context];
[SVProgressHUD showWithStatus:@"Please wait...." maskType:SVProgressHUDMaskTypeBlack];
[ self performSelector:@selector(updateHostLabel) withObject:nil afterDelay:1];
// [self updateHostLabel];
}
else{
[AJNotificationView showNoticeInView:self.view
type:AJNotificationTypeGreen
title:@"BAD URL"
linedBackground:AJLinedBackgroundTypeAnimated
hideAfter:2.5f];
}
}];
[blockAlert setCancelButtonWithTitle:@"Cancel" block:^{}];
[blockAlert show];

@msec
Copy link

msec commented Oct 11, 2013

@lpmacdevelopers I'm experiencing this exact same issue at the moment and I'm not running iOS 7 in the simulator. Have you figured out how to resolve the problem?

@msec
Copy link

msec commented Oct 11, 2013

@lpmacdevelopers You gave me a good pointer when you started referring images having a nil value. I have just fixed the problem for myself, have you added both of the following folders to your own project as per the following folder paths?

  • BlockAlertsDemo > Images > ActionSheet
  • BlockAlertsDemo > Images > AlertView

Make sure that "Copy Items to destination folder (If needed) is checked" as well as "Create groups for any added folders".

The folder "To add to your projects" is deceiving as the images are also required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants