NSMutableString *newStr = [[NSMutableString alloc] initWithString:[NSString stringWithFormat:@"%ld",(long)_flowerNum]]; NSInteger insertPosition = new ...
分类:
其他好文 时间:
2016-06-14 13:49:17
阅读次数:
176
#import "UIImageView+WebCache.h" [self.HMImageView sd_setImageWithURL:url placeholderImage:nil options:0 progress:^(NSInteger receivedSize, NSInteger ...
分类:
编程语言 时间:
2016-06-11 14:26:19
阅读次数:
110
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 typedef NS_ENUM(NSInteger, SDImageCacheType) { /** * The image wasn't available the SDWebImage caches, but w ...
分类:
Web程序 时间:
2016-06-07 16:18:21
阅读次数:
256
有一串比较大的数字,把这组数字格式化成以万为单位的数字 + (NSString *)stringWithFormatNum:(NSInteger)num { return [NSString stringWithFormat:@"%@", num >= 10000 ? [NSString strin ...
分类:
移动开发 时间:
2016-06-05 15:23:55
阅读次数:
226
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef NS_OPTIONS(NSInteger,DeviceType) { iPhoneFivePointFiveInch = 1 << 0, iPhoneFourPoint ...
分类:
移动开发 时间:
2016-06-04 12:00:20
阅读次数:
210
50.直接创建的tab记得设置数据源self.tableView.dataSource = self; 51. -(NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section设置组尾 ...
分类:
移动开发 时间:
2016-06-03 19:04:48
阅读次数:
291
typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, //为将图片按照整个区域进行拉伸(会破坏图片的比例)【改变内容的高宽比例,缩放内容,UIView中完整显示内容,填满UIView】 UIView ...
分类:
其他好文 时间:
2016-06-01 15:38:49
阅读次数:
1165
//调用 NSInteger i = [self howManyDaysInThisMonth:2]; NSLog(@"%ld",(long)i); // 获取今年指定月的天数 - (NSInteger)howManyDaysInThisMonth :(NSInteger)imonth { int ...
分类:
移动开发 时间:
2016-06-01 14:19:57
阅读次数:
249
iOS开发UI篇—UITableview控件使用小结 一、UITableview的使用步骤 UITableview的使用就只有简单的三个步骤: 1.告诉一共有多少组数据 方法:- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableV ...
分类:
移动开发 时间:
2016-06-01 00:03:29
阅读次数:
206
命名有些错误,但功能实现,以后注意下命名规范 WJViewGroup.h #import <UIKit/UIKit.h> @interface WJViewGroup : UIView { NSInteger _width; NSInteger _height; } @property (nonat ...
分类:
移动开发 时间:
2016-05-31 08:53:02
阅读次数:
328