Skip to content

Instantly share code, notes, and snippets.

View choi-bong-sik's full-sized avatar
🌴
On vacation

최봉식 choi-bong-sik

🌴
On vacation
View GitHub Profile
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
NSLog(@"identifier :: %@",segue.identifier);
NSLog(@"sourceViewController :: %@",segue.sourceViewController);
NSLog(@"destinationViewController :: %@",segue.destinationViewController);
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
NSLog(@"identifier :: %@",segue.identifier);
NSLog(@"sourceViewController :: %@",segue.sourceViewController);
NSLog(@"destinationViewController :: %@",segue.destinationViewController);
}
@choi-bong-sik
choi-bong-sik / gist:4317055
Created December 17, 2012 09:35
SKStoreProduct test
-(void)linkAppsBtnCliekd
{
NSLog(@"%@ :: %@ ::",self,NSStringFromSelector(_cmd));
[self presentAppStoreForID:[NSNumber numberWithInt:407189619] inView:self.view withDelegate:self withURL:[NSURL URLWithString:@"https://itunes.apple.com/kr/app/neibeo-jisigin-yeogi-naver/id580057691?mt=8"]];
}
- (void)presentAppStoreForID:(NSNumber *)appStoreID inView:(UIView *)view withDelegate:(id<SKStoreProductViewControllerDelegate>)delegate withURL:(NSURL *)appStoreURL
{
if(NSClassFromString(@"SKStoreProductViewController")) { // iOS6 이상인지 체크