iphoneobjective-ciphone-softkeyboard

UIView not appearing over keyboard?


I have this code:

JMenuController *menuController = [[JMenuController alloc] init];
    NSArray *buttonsArray = [NSArray arrayWithObjects:@"From Libary", @"Take Photo or Video", nil];
    [menuController showMenuWithTitle:@"Add Media" ButtonTitles:buttonsArray animated:YES];
    self.currentMenuType = JCreateMenuTypeNewMedia;

    [[[[UIApplication sharedApplication] delegate] window] addSubview:menuController];

The problem is, the view appears below the keyboard, which is already on screen. How do i fix this?


Solution

  • Ok it took awhile for me to understand what you wanted to do. You have 2 options.

    I would recommend the later.

    Edit: Take a look at this for your custom UIActionSheet Show a view over the keyboard