当前位置: 代码迷 >> 综合 >> iOS获取控制器里面的控件
  详细解决方案

iOS获取控制器里面的控件

热度:56   发布时间:2024-01-20 19:47:01.0

UIButton *btn1 = (UIButton *)[myView viewWithTag:1];

UILabel *Label = (UILabel *)[myView viewWithTag:2];

UITextView *TextView = (UITextView *)[myView viewWithTag:3];

  相关解决方案