自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Dancer2015 的博客

知足不辱,知止不殆!

  • 博客(12)
  • 资源 (1)
  • 收藏
  • 关注

原创 iOS-cell.selectedBackgroundView自定义

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{   static NSString *Identifier =@"Cell";   UITableViewCell *cell = [tableView cellF

2016-01-31 20:12:31 1936

原创 iOS-两个scrollView联动(上下两个scrollView布局的情况)

代码举例-(void)scrollViewDidScroll:(UIScrollView *)scrollView{   CGFloat pageWidth = WIDTH;   int page = floor((scrollView.contentOffset.x - pageWidth /2) / pageWidth) + 1;   self.pa

2016-01-28 21:52:39 7429

原创 iOS CGRectDivide布局(代码举例)

#import "BingChengItemViewCell.h"#import static CGRect oldframe;//用于记录放大之前的frame@implementation BingChengItemViewCell- (void)awakeFromNib {    [self.bgViewsetCornerRadius:5];

2016-01-25 22:13:16 660

原创 iOS-UITextField限制输入的字符个数

#pragma mark - UITextFieldDelegate- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{    NSMutableString *preStr = [

2016-01-25 19:15:28 699

原创 UITableViewcell分割线满格显示

-(void)viewDidLayoutSubviews {       if ([self.tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {        [self.tableViewsetSeparatorInset:UIEdgeInsetsZero];    }   if

2016-01-25 11:53:03 582

原创 iOS-分组UITableView删除崩溃问题(当删除section中最后一条数据崩溃的情况)

错误: The number of sections contained in the table view after the update (1) must be equal to the number of sections contained in the table view before the update (2), plus or minus the number of secti

2016-01-22 19:39:09 6507

原创 iOS-计算文字(字符串)高度

#pragma mark - 计算字符串高度,用于cell的高度自适应-(CGFloat)caculatorHeightOfString:(NSString *)text{        CGFloat height = [textboundingRectWithSize:CGSizeMake(WIDTH-20,MAXFLOAT)

2016-01-21 09:08:55 1016

原创 iOS -字符串替换 富文本的简单使用

NSString *skills = [userAcc.skills stringByReplacingOccurrencesOfString:@"$$" withString:@"、"];   if ([skills length] > 0) {        skills = [skills substringWithRange:NSMakeRange(0, [skills l

2016-01-20 10:36:00 1888

转载 iOS4 - UIPopoverController弹出窗口的位置和坐标(转载)-待整理

ControllerA *ca = [[ControllerA alloc] init];UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:ca];//内容大小nav.contentSizeForViewInPopover =CGSizeM

2016-01-10 19:22:44 524 2

转载 iOS 基本对象的用法详解(转载)

iOS 基本对象的用法详解。一、NSString的基本用法。二、NSMutableString的基本用法。三、NSArray的基本用法。四、NSMutableArray的基本用法。五、NSDictionary的基本用法。 八、从目录搜索扩展名为jpg的文件。六、NSMutableDictionary的基本用法。七、NSValue的基本用法。NSValue(对任何对象进行包装)。

2016-01-10 18:50:45 496

原创 iOS-坐标变换(可用于实现图片放大还原等效果)

// 将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;// 将像素point从view中转换到当前视图中,返回在当前视图中的像素值- (CGPoint)convertPoint:(CGPoint)point fr

2016-01-10 18:45:35 619

原创 iOS -点击按钮查看大图,再次点击还原效果(此处以UITableViewCell为父视图,其中加载多个图片为例)

#import "xxxCell.h"#import staticCGRect oldframe;//用于记录放大之前的frame@implementation xxxCell- (void)awakeFromNib {}//1.给cell赋值-(void)reDrawInfoContentView:(xxxModel*)mo

2016-01-10 18:14:44 1414

全国省市区(县)plist文件

全国省市区(县)plist文件,里面的plist数据非常全面。

2016-09-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除