I want to hide the back button when transitioning from one view to another. I read the questions regarding this problem and every answer was \"use hidesBackButton\"
hidesBackButton
Try adding this,This worked for me
navigationItem.hidesBackButton = true