0

I have some doubts. I'm using a UITableViewController, and at bottom it's not giving space for the home indicator. It goes behind the home indicator (refer to the image). If I add any button actions to the last cell, this will surely cause an error.

iphone x home indicator issue whle using tableViewController

NRitH
  • 13,441
  • 4
  • 41
  • 44
Sarath
  • 343
  • 3
  • 12

2 Answers2

1

Refer this to add programmatically... https://developer.apple.com/documentation/uikit/uiview/positioning_content_relative_to_the_safe_area

Community
  • 1
  • 1
shiva
  • 41
  • 3
0

Use Safe area layout constraints. See the attachment bellow.Your problem will be solved.

enter image description here

Muzahid
  • 5,072
  • 2
  • 24
  • 42
  • 1
    This your answer resolve the issue when we use any UIView or UITableView. but in my case im using UITableViewController. I cant give any constraints to it. – Sarath Nov 30 '17 at 09:16