Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct{
- char* title;
- char* message;
- } AlertViewData;
- void displayAlertView(void *paramContext){
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
- dispatch_queue_t mainQueue = dispatch_get_main_queue();
- AlertViewData* context = (AlertViewData*)malloc(sizeof(AlertViewData));
- if(context!=nullptr){
- context->title = "test";
- context->message = "Hello";
- dispatch_async_f(mainQueue, context, displayAlertView);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement