![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
MrZ-Black
这个作者很懒,什么都没留下…
展开
-
IOS socket 判断网络连接(SCNetworkReachability)
1、基础知识:所有需要联网的程序,在一开始都要判断当前的网络连接情况。iphone也不例外。2、IOS 提供了一个SCNetworkReachabilityRef类,方便我们的使用。主要方法有(1)创建一个测试连接的引用:SCNetworkReachabilityRef SCNetworkReachabilityCreateWithAddress{CFAllocatorRef原创 2013-05-23 14:32:43 · 1807 阅读 · 0 评论 -
IOS UILabel添加手势,增加点击功能
为UILabel增加点击触发事件。 UITapGestureRecognizer *tapRecognizerWeibo=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(openURL:)]; self.weiboLabel.userInteractionEnabled=YES;原创 2013-07-30 14:41:54 · 12127 阅读 · 0 评论