【代码笔记】iOS-评分,支持我们

一,效果图。

二,工程图。

三,代码。

RootViewController.m

复制代码
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title=@"评分,支持我们";
}
//点击任何处,跳转到产品的页面。
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    NSString *urlString=@"http://www.baidu.com";
    
     NSURL* url = [NSURL URLWithString:urlString];
    [[UIApplication sharedApplication] openURL:url];

}
复制代码

 

 

 
 
原文地址:https://www.cnblogs.com/yang-guang-girl/p/5480673.html