2010-12-31

iphone - linphone env setting

>>header search paths : submodules/linphone/coreapi submodules/linphone/mediastreamer2/include submodules/linphone/mediastreamer2/include submodules/linphone/oRTP/include submodules/externals/gsm/ submodules/externals/osip/include submodules/externals/exosip/include submodules/externals/speex/include

>>library serch paths : "$(SRCROOT)/liblinphone-sdk/apple-darwin/lib" "$(SRCROOT)/liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins"

Other Linker Flags : -l linphone

Preprocessor Macros : IN_LINPHONE

2010-12-30

iphone - UIAlertView test

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Alert View Demo"
message:@"請選擇"
delegate:self
cancelButtonTitle:@"取消"
otherButtonTitles:@"儲存",@"載入",@"ONE MORE",nil];
[alertView show];
[alertView release];

- (void)alertView:(UIAlertView *) alertView clickedButtonAtIndex:(NSInteger) buttonIndex
{
switch (buttonIndex) {
case 0:
NSLog(@"cancel...");
break;
case 1:
NSLog(@"save...");
break;
case 2:
NSLog(@"load...");
break;
case 3:
NSLog(@"one more...");
break;
default:
break;
}
}

Basic step => develop iphone app

Step 1 : new a view base project
Step 2 : Use IB to create UI
Step 3 : Setting UI attribute
Step 4 : set Class Identity => set Outlets, Actions
Step 5 : Connect Actions, Outlets
Step 6 : implement