I want to set a single button at difference place like. if i select i-pad simulator then button show right side and if i select iPhone simulator left side without coding.
Asked
Active
Viewed 150 times
-2
-
have you tried anything so far? – Shamas S Jun 20 '17 at 06:06
-
show your work? What u have written – Gagan_iOS Jun 20 '17 at 06:08
-
iPad is also an iOS device. – Losiowaty Jun 20 '17 at 06:09
-
@ShamasS getting some task .. l want to set a button in ios Device using Autolauout. if i select ipad simulator then that button show in right side and Top side – Sagar vaishnav Jun 20 '17 at 06:11
-
Sorry @Losiowaty i know ios means iphone device – Sagar vaishnav Jun 20 '17 at 06:14
-
We got it what you want but what you tried for your task pls mention so that we can answer accordingly. – dahiya_boy Jun 20 '17 at 06:16
-
@dahiya_boy m newbie in Auto-layout i don't know how to do this so i asked here – Sagar vaishnav Jun 20 '17 at 06:18
-
1You have to read about auto-layout first: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/index.html – Vahid Jun 20 '17 at 06:27
-
2@Sagarvaishnav As a friend I suggest you First read Apple docs and learn basics otherwise you always stuck in every point. – dahiya_boy Jun 20 '17 at 06:38
1 Answers
0
Use 'vary for traits' it's very powerful to use without single line of code. see link below

Dilip Bhuva
- 180
- 9