escoz / QuickDialog

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

QBadgeElement: value or badge differs in json or constructor #647

Open Muenze opened 10 years ago

Muenze commented 10 years ago

Hey, I wanna start with QuickDialog and I have discovered something i feel a little bit strange.

I make a QRootElement with 1 section and 1 QBadgeElement in it.


QBadgeElement *be = [[QBadgeElement alloc] initWithTitle:@"Hello" Value:@"World!"]; [section addElement:be];

I use this constructor code in viewDidLoad



I use badge in the json version to make this work: { "grouped": true, "title": "Hello World", "controllerName": "TestViewController", "sections": [ { "title": "Question", "elements": [ { "type": "QBadgeElement", "title": "Hello", "badge": "world" } ]

             }
             ]

}


I think this is cause you use NSObject setter method and the property for the value internaly is badge and not called value, correct?

Its not very clear that you cannot simply exchange constructor for json.

Please excuse my simple and perhaps wrong english, it's not my first language