Show a view over the keyboard

后端 未结 3 1804
失恋的感觉
失恋的感觉 2020-12-09 13:39

I am looking for a way on the iPhone, due to a custom \'loading\' subview, to have a subview cover the keyboard without dismissing the keyboard. Right now when the subview l

3条回答
  •  盖世英雄少女心
    2020-12-09 14:24

    UIWindow *window = [UIApplication sharedApplication].windows.lastObject;
    [window addSubview:self.view];                                                                                                                                                                                                                                        
    [window bringSubviewToFront:self.view];
    

提交回复
热议问题