- 博客(4)
- 收藏
- 关注
原创 iOS Label添加多个点击事件
这里使用的是第三方YYText中的YYLabel配合属性字符串来实现的,这样过程会简单一些,废话不多说直接上代码。
2024-06-12 11:18:16
252
原创 iOS获取Cell在视图上的位置
1.获取Cell在tableView上的位置NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];CGRect rect = [self.tableView rectForRowAtIndexPath:indexPath];2.获取Cell在视图上的位置CGRect cellRect = [self.tableView convertRect:rect toView:self.view];
2024-02-21 16:40:33
530
原创 XCode15 不能创建Category
路径:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/MultiPlatform/Source/这是由于Xcode15缺少了"CategoryNSObject"和"ExtensionNSObject"两个文件引起的,解决办法就是将这两个加进去就好了。
2024-02-16 14:54:59
822
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人