Search code examples
iphoneobjective-ciosuiactionsheet

How to add keyboard in action sheet


Is it possible add keyboard in action sheet? If yes, how can I do? ... I would like to disable the background. Thanks, Luigi.


Solution

  • I think UIKeyBoard can not be added in ActionSheet but you achieve your goal but handling keyboard notifications...add the Keyboard will appear and will disappear notifications in your controller... on keyboard will appear add a subview of frame same as the parent view frame..and set its alpha 0.5...it will look like An ActionSheet is appearing and the background will automatically be disabled and on keyboard disappear remove that view from superview...you can add tap Gesture in the view you are adding..Hope so it will be answer of your question.