escoz/QuickDialog — Issue #40: QBooleanElement.onSelected doesn't fire
Author: florinpatrascu
Created: 2011-12-29 22:18:46+00:00
State: open

Hi there,

Unless I am doing something wrong, the QBooleanElement.onSelected doesn't fire when I click on the cell. Here is the gist of it:

````objective-c
QBooleanElement *registerOrTransfer = [[QBooleanElement alloc] initWithTitle:@"kitty"
BoolValue:NO];
registerOrTransfer.onImage = imgOn;
registerOrTransfer.offImage = imgOff;
registerOrTransfer.key = @"registerOrTransfer";
registerOrTransfer.onSelected = ^{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello"
message:@"Kitty"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
};
````

And I can't see the simple 'Hello' dialog.

It does work though on a QButtonElement.

Please advise, thank you
-florin