![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
li784499
这个作者很懒,什么都没留下…
展开
-
背景:苹果自带键盘输入英文时,中间会有“空格”。
无转载 2022-07-05 15:38:32 · 2096 阅读 · 0 评论 -
【无标题】
setNeedsLayout与layoutIfNeeded原创 2022-03-24 16:37:04 · 1583 阅读 · 0 评论 -
ios - uiconllectionView滑动或者realod后cell被hidden问题
把一个controller的view加在另一个controller上时,如果没有把controller加到另一个controller的childController上([self addChildViewController:vc];),会导致collectionView变空白,UIScrollView相关的代理也不会调用了原创 2022-01-06 17:41:04 · 1516 阅读 · 0 评论 -
ios
给单例添加了观察者,在观察者delloc时,一定要移除单例的观察者原创 2020-09-13 01:12:29 · 78 阅读 · 0 评论 -
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 阅读 · 0 评论 -
ios 横竖屏转换通知问题
关于ios 屏幕横竖屏切换问题当设备方向改变时,系统会发送通知 UIDeviceOrientationDidChangeNotification,但这里有一个问题,当手动转换设备方向时,在瞬间又转换回来(用设备重力感应),则系统只会通知第一次的那个通知,第二次的不会通知,但控制器自带的view却又是第二方向的那个状态的坐标了。就会出现横屏的布局出现在竖上的情况。解决方法:不使用系统通知,使用系...原创 2019-02-26 11:42:37 · 896 阅读 · 0 评论 -
ios 时间
当你拿到了一个系统时间后,需要转成手机目前设置的时区对应的时间//设置转换后的目标日期时区NSTimeZone* destinationTimeZone = [NSTimeZone localTimeZone];//目标日期与本地时区的偏移量NSInteger destinationGMTOffset = [destinationTimeZone secondsFromGMTForDate...原创 2019-03-07 15:02:18 · 133 阅读 · 0 评论 -
ios 微信h5支付 回调
wkwebviewNSString *scheme = [request.URL scheme];NSString *absoluteString = [request.URL.absoluteString stringByRemovingPercentEncoding]; static NSString *endPayRedirectURL =...转载 2019-03-07 15:04:15 · 803 阅读 · 0 评论 -
一个项目里多个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 阅读 · 0 评论