You can do it programmatically, or better yet, you can simply edit your project's Info.plist (Which should be more practical, since it's a global device configuration)
Just add "Supported Interface orientations (iPad)" key
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…