AutoRotation ใน iphone
posted on 14 Apr 2009 13:08 by xnanoob in Otherดีค่ะ หยุดอยู่กะบ้าน เลยอยากหัดทำที่มันหมุนเครื่องแล้วของหมุนตามบ้าง
ก็ง่ายมากเลยนะค่ะ ให้ return YES แทน ใน method shouldAutorotateToInterfaceOrientation เนี้ยค่ะ
// Subclasses override this method to define how the view they control will respond to device rotation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
จบแระค่า บายค่ะ
Tags: autorotation, iphone, xcode, xnanoob1 Comments







ขยันเขียนจัง สงกรานต์ไม่ไปไหนหรอเนี่ย
#1 By TonHor on 2009-04-15 11:02