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;
}

 

จบแระค่า บายค่ะ

Comment



smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry

Tweet

เป็นไงบ้างจ๊ะ xna

ขยันเขียนจัง สงกรานต์ไม่ไปไหนหรอเนี่ย

ปืนฉีดน้ำ ปืนฉีดน้ำ ปืนฉีดน้ำ ปืนฉีดน้ำ ปืนฉีดน้ำ

#1 By TonHor on 2009-04-15 11:02