- (NSInteger)getDifferenceByDate:(NSString *)date { //获得当前时间 NSDate*now = [NSDateda...

- (NSInteger)getDifferenceByDate:(NSString *)date { //获得当前时间 NSDate*now = [NSDateda...
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init]; layo...
所有示例代码均可以在 Animations-Demo 下载到 iOS 中实现动画有好几种方式,UIView 无疑是最简单的一种,但是所有的动画归根结底还是 layer 层的动...
#pragma mark - UIGestureRecognizerDelegate-(BOOL)gestureRecognizer:(UIGestureRecognizer...
enum{ Sun = 1, Mon, Tue, Wed, Thu, Fri, Sat }; - (NSString *)dateToStr:(N...
在自己的navigationcontroller的viewdidload 里面写下如下代码 self.delegate=self; __weaktypeof(self)wea...
实现渐变色的类型 CAGradientLayer*gradient = [CAGradientLayerlayer]; gradient.frame = colorView....
-(void)addanimationwithView:(UIView *)circleView{ NSInteger pulsingCount = 5; double ...
NSInteger index= [[self.navigationController viewControllers] indexOfObject:self]; [s...
隐藏分割线 _tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 取消tableviewcell的选中...
RN项目 pod install 后报错 Analyzing dependencies Fetching podspec for `React` from `../node_...
XXX.showsVerticalScrollIndicator =NO; XXX.showsHorizontalScrollIndicator =NO;
-(void)scrollViewDidScroll:(UIScrollView*)scrollView { if(scrollView ==scroll) { ...
/// 请求回调 通用处理 - (void)makeCommonResponse:(id)responseObject selector:(SEL)selector { ...
分享一下我目前所在公司 iOS 项目中用到的一些 iOS 开源库和第三方组件, 感谢开源, 减少了我们的劳动力, 节约了我们大量的时间, 让我们有更多的时间和精力能更加专注的...
NSDate * expireDate = [NSDate dateWithString:_expireDatetime formatString:@"yyyy-MM-dd ...