在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
// 按钮点击事件 func onTouchUpInside() { struct touchUpInside { static var count: Int = 0 } touchUpInside.count += 1 print(touchUpInside.count) if touchUpInside.count % 2 == 0 { newsView.frame = CGRectMake(10, 22, UIScreen.mainScreen().bounds.size.width - 50, 40) } else { newsView.frame = CGRectMake(10, 22, UIScreen.mainScreen().bounds.size.width - 50, UIScreen.mainScreen().bounds.size.height - 20) } } |
请发表评论