- 博客(11)
- 收藏
- 关注
原创 ios - uiconllectionView滑动或者realod后cell被hidden问题
把一个controller的view加在另一个controller上时,如果没有把controller加到另一个controller的childController上([self addChildViewController:vc];),会导致collectionView变空白,UIScrollView相关的代理也不会调用了
2022-01-06 17:41:04
1516
原创 ios
Please write the final output of the following code(void)viewDidLoad {[NSTimer scheduledTimerWithTimeInterval:5.0f target:self selector:@selector(functionTestA) userInfo:nil repeats:NO];[self functionTestB];[self functionTestC];}(void)functionT.
2020-07-20 11:31:59
89
原创 IOS UITableView 的 reloadData方法
调用 tableview 的reloadData方法,在ios 13.3之前,如果tableview本身的contentOffset有值时,则scrollViewDidScroll方法会调用,13.3之后不会ios 12以前,如果cell的高度是很大的情况,scrollViewDidScroll会先到该cell的前一个cell所在的偏移量,然后到该cell的后一个cell所在的偏移量,最后才是当前所有的偏移量...
2020-07-08 13:53:49
1121
原创 io 有关convertRect问题
#pragma mark - LYNewHomeViewModelDelegate(void)viewModel:(LYNewHomeViewModel *)viewModel didRefreshDataWithError:(NSError * _Nullable)error firstLoad:(BOOL)firstLoad {[self.mutiScrollView.mj_header endRefreshing];if (firstLoad) {[self.view removeAllS
2020-06-11 20:02:45
241
转载 一个项目里多个targets时对podfile需要进行处理
source ‘https://github.com/CocoaPods/Specs.git’platform :ios, ‘8.0’abstract_target ‘AAAA’ dopod ‘AFNetworking’, ‘~> 3.0’pod ‘Masonry’pod ‘MJRefresh’pod ‘SDWebImage’, ‘~>3.8’pod ‘RongCloud...
2019-04-23 14:43:14
289
转载 ios 微信h5支付 回调
wkwebviewNSString *scheme = [request.URL scheme];NSString *absoluteString = [request.URL.absoluteString stringByRemovingPercentEncoding]; static NSString *endPayRedirectURL =...
2019-03-07 15:04:15
803
原创 ios 时间
当你拿到了一个系统时间后,需要转成手机目前设置的时区对应的时间//设置转换后的目标日期时区NSTimeZone* destinationTimeZone = [NSTimeZone localTimeZone];//目标日期与本地时区的偏移量NSInteger destinationGMTOffset = [destinationTimeZone secondsFromGMTForDate...
2019-03-07 15:02:18
133
原创 ios 横竖屏转换通知问题
关于ios 屏幕横竖屏切换问题当设备方向改变时,系统会发送通知 UIDeviceOrientationDidChangeNotification,但这里有一个问题,当手动转换设备方向时,在瞬间又转换回来(用设备重力感应),则系统只会通知第一次的那个通知,第二次的不会通知,但控制器自带的view却又是第二方向的那个状态的坐标了。就会出现横屏的布局出现在竖上的情况。解决方法:不使用系统通知,使用系...
2019-02-26 11:42:37
896
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人