IOS生产实习知识

动画效果

1.

[UIView transitionWithView:<#(UIView *)#> duration:<#(NSTimeInterval)#> options:<#(UIViewAnimationOptions)#> 

 

2.

animations:<#^(void)animations#> completion:^(BOOL finished) {

//            <#code#>

//        }]

 

3.

[UIView animateWithDuration:<#(NSTimeInterval)#> animations:<#^(void)animations#> completion:<#^(BOOL finished)completion#>]

 

[UIView animateWithDuration:<#(NSTimeInterval)#> delay:<#(NSTimeInterval)#> usingSpringWithDamping:<#(CGFloat)#> initialSpringVelocity:<#(CGFloat)#> options:<#(UIViewAnimationOptions)#> animations:<#^(void)animations#> completion:<#^(BOOL finished)completion#>]

 

NSTimer的重复执行

1.

 [NSTimer scheduledTimerWithTimeInterval:<#(NSTimeInterval)#> invocation:<#(NSInvocation *)#> repeats:<#(BOOL)#>]

 

2.

跳转到其他UIViewController

 

[self performSegueWithIdentifier:@"toLogin" sender:nil];

//navigationControllerpush

[self.navigationController pushViewController:detailVC animated:YES];

 

3.

//模态推送

detailVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;//跳转的方式

[self presentViewController:detailVC animated:YES completion:nil];//页面的跳转

 

得到NSIndexPath方法

1.

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];

2.

SpotTableViewCell *cell = (SpotTableViewCell *)sender;

NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];

 

通过Identifier跳转

1.

[self performSegueWithIdentifier:@"toLogin" sender:nil];

 

2.

 

#pragma mark - Navigation

 

 

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    

    //在通过哪一个链接跳转前进行的操作  图片名称的 传值

DetailRecommendVC * destination = [segue destinationViewController];//得到要跳转的目的地的ViewController

}

 

显示网页

- (void)initializeAppearance{

    [super initializeAppearance];

    //显示网页 UIWebView NSURL NSURLRequest

    UIWebView*webView = [[UIWebView allocinitWithFrame:self.view.bounds];

    NSURL *url =[NSURL URLWithString:@"http://www.baidu.com"];

    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    [webView loadRequest:request];

    

    [self.view addSubview:webView];

}

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值