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

EXC_BAD_ACCESS #100

Closed
bchessin opened this issue Apr 12, 2015 · 8 comments
Closed

EXC_BAD_ACCESS #100

bchessin opened this issue Apr 12, 2015 · 8 comments

Comments

@bchessin
Copy link

Hi,

Just downloaded and implemented your library. Getting a EXC_BAD_ACCESS crash like shown in the attached image when tapping the dismiss button of an alert view.
screen shot 2015-04-12 at 3 21 30 am

@dogo
Copy link
Owner

dogo commented Apr 14, 2015

iOS version
Emulator or device?
Xcode version ?

@bchessin
Copy link
Author

iOS 8.1.2
Device
Xcode 6.3

@dogo
Copy link
Owner

dogo commented Apr 14, 2015

It's running fine here, could you please post your source code please

@bchessin
Copy link
Author

SCLAlertView *alert = [[SCLAlertView alloc] init];
[alert addButton:@"Email Developer" actionBlock:^(void) {
SHKItem *mailItem = [SHKItem text:@""];
[mailItem setMailToRecipients:[NSArray arrayWithObjects:@"myEmail@yahoo.com", nil]];
[mailItem setTitle:@"App Inquiry"];
[SHKMail shareItem:mailItem];
}];
[alert showInfo:self title:@"Info" subTitle:@"You can rename the notes within the table by clicking the trash can icon." closeButtonTitle:@"Dismiss" duration:0.0f];

@bchessin
Copy link
Author

Sorry for not formatting the code there, still new to this site. But pretty much I just implemented the library, used that code and it crashed when clicking the dismiss button.

@dogo
Copy link
Owner

dogo commented Apr 15, 2015

Hi, @Objective-Zero

Your code seems fine, try to remove the SHK stuff and run again. Like this

SCLAlertView *alert = [[SCLAlertView alloc] init];
[alert addButton:@"Email Developer" actionBlock:^(void) {
    NSLog(@"LOG"); 
}];
[alert showInfo:self title:@"Info" subTitle:@"You can rename the notes within the table by clicking the trash can icon." closeButtonTitle:@"Dismiss" duration:0.0f];

Probably its something related to SHK

@bchessin
Copy link
Author

The SHK stuff is not the problem. I just slightly altered the library code to make a button tap effect by changing the buttons alpha level and that worked so it must just be a bug that is hard to track down. I mean you can investigate this more if you would like but I am happy with my approach right now.

@bchessin
Copy link
Author

I found the issue! I was using the library in a non-ARC project so that bug resulted from not using ARC. Once I included the proper compiler flags it worked properly.

@dogo dogo closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants