레이블이 NSURL인 게시물을 표시합니다. 모든 게시물 표시
레이블이 NSURL인 게시물을 표시합니다. 모든 게시물 표시

2013년 11월 7일 목요일

Cocos touch 웹 브라우저 열기


URL 문자열을 생성
NSString* url = [NSString stringWithFormat:@"https://itunes.apple.com/us/app/unsemalu/id730788250?ls=1&mt=8"];

NSURL 객체 생성
NSURL* fortune = [NSURL URLWithString:url];

브라우저 열기
[[UIApplication sharedApplication]openURL:fortune];