Position of my UIButton are varying for in all simulator
I am under one project.In that I created one uibutton at bottom of my viewcontroller using code (Not via storyboard).But when i run my app,my uibutton are placing in differents positions.for example in iphone 5,6 simulator are in some position.In 4s,ipad simulator my uibutton is unvisible.Also i check with my own device(iphone 6) ,in that also my uibutton is not able to see. Needed I used below code for creating & placing my button position.but its not fit in one position. CGFloat buttonSize = 40; UIButton * disButton = [[UIButton alloc] init]; disButton.backgroundColor = [UIColor redColor];