Tips
< iphone Programing
< programming
< stekilove
Get flash to fully experience Pearltrees
이 포스팅 제목 뽑기 참 힘들었다... 지금도 마음에 안 들지만, 그냥 할련다. 내가 원래 그렇지... iPhone Application 개발을 하다보면 가끔 참 황당하기 짝이없는 API들을 보는 경우가 있는데, 오늘 소개할 것은 UIActionSheet와 UIAlertView다. 사실, 이 둘은 생긴 모양은 다르지만, API생김새는 거의 똑같다. 그러므로 예는 모두 UIActionSheet를 사용하겠다.
#import "OpenFeintDelegate.h" @interface SampleOFDelegate : NSObject - (void)dashboardWillAppear; - (void)dashboardDidAppear; - (void)dashboardWillDisappear; - (void)dashboardDidDisappear; - (void)userLoggedIn:(NSString*)userId; - (BOOL)showCustomOpenFeintApprovalScreen; @end NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight], OpenFeintSettingDashboardOrientation, [NSNumber numberWithBool:YES], OpenFeintSettingDisableUserGeneratedContent, nil]; ofDelegate = [SampleOFDelegate new]; OFDelegatesContainer* delegates = [OFDelegatesContainer containerWithOpenFeintDelegate:ofDelegate]; [OpenFeint initializeWithProductKey:@"프로덕트 키 입력" andSecret:@"프로덕트 시크릿 입력" andDisplayName:@"어플리케이션 이름 입력" andSettings:settings // see OpenFeintSettings.h andDelegates:delegates]; // see OFDelegatesContainer.h