uiview - How to add line at the top of keyboard in ios? -


i have view in show numeric keyboard. problem keyboard missing top line. white background unpleasant effect appears:

enter image description here

how can add 1pt view @ top simulate top line?

quick , dirty:

- (bool)textfieldshouldbeginediting:(uitextfield *)textfield {     uiview *separatorview = [[uiview alloc] initwithframe:cgrectmake(0, 0, cgrectgetwidth([uiscreen mainscreen].bounds), 1.0 / [uiscreen mainscreen].scale)];     separatorview.backgroundcolor = [uicolor lightgraycolor];     textfield.inputaccessoryview = separatorview;      return yes; } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -