zoukankan      html  css  js  c++  java
  • ios

    写法1:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        // Get the new view controller using [segue destinationViewController].
        // Pass the selected object to the new view controller.
        if ([segue.identifier isEqualToString:@"ProjectDetailsSegue"]) {
            ProjectDetailsViewController *detailsVC = segue.destinationViewController;
            detailsVC.idString = sender;
        }

    写法2:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        // Get the new view controller using [segue destinationViewController].
        // Pass the selected object to the new view controller.
        if ([[segue destinationViewController] isKindOfClass:[EZWifiConfigViewController class]]) {
            ((EZWifiConfigViewController *)[segue destinationViewController]).ssid = self.nameTextField.text;
            ((EZWifiConfigViewController *)[segue destinationViewController]).password = self.passwordTextField.text;
        }
    }
  • 相关阅读:
    python面试题目【转1】
    让python和C/C++联姻【转】
    python面试模拟真题讲解
    JavaScript真的要一统江湖了
    WebApp
    Linux服务器之SSH
    web服务之http
    SNMP简单网络管理协议
    Storm,Spark和Samza
    Stream computing
  • 原文地址:https://www.cnblogs.com/codemakerhj/p/5751744.html
Copyright © 2011-2022 走看看