This is a scaffold library and the aid of the project is providing all foundation functions for IOS
developer to build app easier.
It provides a easy way to add and remove a blocking to UIControl event
[self.theButton A_Event_OnClick:^(id sender, id param) {
[((UIViewController*)param).view
setBackgroundColor:[UIColor A_ColorMakeFormString:@"ABABAB"]];
} WithObj:self];
[self.theButton A_Event_RemoveClick];
[self.theButton A_Event_Add:^(id sender) {
NSLog(@"Test");
} forControlEvents:UIControlEventTouchDragEnter];
//If this event is going to change @property, you might need to add an object with the event.
[self.theButton A_Event_Add:^(id sender, id param) {
[param.hiddenView A_Animation_FadeOut:0.3f];
} WithObj:self forControlEvents:UIControlEventTouchUpInside];
[self.theButton A_Event_Remove:UIControlEventTouchDragEnter];
[A_AsyncHelper A_RunInBackground:^{
_dic = [A_RESTRequest A_GetDictionary:@"www.yourwebservice.com/something"
Parameters:@{@"key1":@"value", @"key2": @"value2"}
Headers:@{@"Accept":@"application/json",
@"Content-Type":@"application/json; charset=utf-8"}];
} WhenDone:^{
// Doing the display job
}];