escoz / QuickDialog

QuickDialog - Quick and easy dialog screens for iOS
http://escoz.com/open-source/quickdialog
Other
3.07k stars 637 forks source link

Dispatching Objective-C Messages @ arm64 #658

Closed adamhoracek closed 10 years ago

adamhoracek commented 10 years ago

Keeps crashing application on iPhones 5s..

QElement.m: Line 95:

- (void)selectedAccessory:(QuickDialogTableView *)tableView  controller:(QuickDialogController *)controller indexPath:(NSIndexPath *)indexPath{
    if (self.controllerAccessoryAction!=NULL){
            SEL selector = NSSelectorFromString(self.controllerAccessoryAction);
            if ([controller respondsToSelector:selector]) {
                objc_msgSend(controller,selector, self);
//                id (*response)(id, SEL, id) = (id (*)(id, SEL, id)) objc_msgSend;
//                response(self.handler, self.action, output);
            }  else {
                NSLog(@"No method '%@' was found on controller %@", self.controllerAccessoryAction, [controller class]);
            }
        }
}

See for more information: http://stackoverflow.com/questions/19507456/sudzc-arc-version-objc-msgsend-call-causes-exc-bad-access-using-64-bit-archite

escoz commented 10 years ago

Already fixed. thanks.