我们走失在这个九月。

15-09-07

1.看了看CocoaChina,发现了好东西~~~,实现了网易的很多特效,聚光灯,视频剪裁,还有图文混排。。。 

http://www.cocoachina.com/ios/20150831/13185.html

2.简单图文混排,图片剪裁,表情键盘,自定义输入框

http://www.cocoachina.com/ios/20150821/13087.html

3.瀑布流demo

http://code.cocoachina.com/detail/319252/%E7%80%91%E5%B8%83%E6%B5%81+%E4%BD%BF%E7%94%A8%E8%B6%85%E7%BA%A7%E7%AE%80%E5%8D%95/

4.自定义日历选择器

http://code.cocoachina.com/detail/322489/%E7%AE%80%E5%8D%95%E7%9A%84%E6%97%A5%E5%8E%86%E9%80%89%E6%8B%A9%E5%99%A8+LDCalendarView/

09-08

// 矫正TabBar图片位置,使之垂直居中显示 
CGFloat offset = 5.0; 
for (UITabBarItem *item in self.tabbar.items) { 
item.imageInsets = UIEdgeInsetsMake(offset, 0, -offset, 0); 
}


09-19

遇到了cell 重用问题,解决办法参考

http://www.itnose.net/detail/6154013.html


09-22


在webview上添加控件

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate


{
    CGSize size = scrollView.contentSize;
    
    CGFloat maximumOffset = size.height;
    
    _label = [[UILabel alloc]initWithFrame:CGRectMake(0, (int)maximumOffset-82, k_screen_width, 82)];
    _label.backgroundColor = [UIColor redColor];
    [_webView.scrollView addSubview:_label];
 
}

字典转换成json串作为参数

// 字典转换json字符串提交

    NSDictionary * json =@{@"classId":[NSStringstringWithFormat:@"%@",selectedClassId],@"teacherId":[NSStringstringWithFormat:@"%@",[BCHTTPRequestgetUserId]],@"spanList":tempSpanList};

    

    

    NSError *parseError =nil;

    

    NSData *jsonData = [NSJSONSerializationdataWithJSONObject:json options:NSJSONWritingPrettyPrintederror:&parseError];

    

    NSString * jsonStr = [[NSStringalloc] initWithData:jsonDataencoding:NSUTF8StringEncoding];

    

    jsonStr = [self handleSpaceAndEnterElementWithString:jsonStr];


// 去掉json串里面的\n, ,"\\"

- (NSString *)handleSpaceAndEnterElementWithString:(NSString *)sourceStr


{

    

    NSString *realSre = [sourceStrstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]];

    

    //    NSString *realSre1 = [realSre stringByReplacingOccurrencesOfString:@"\r" withString:@""];

    

    NSString *realSre2 = [realSrestringByReplacingOccurrencesOfString:@"\n"withString:@""];

    

    NSString *realSre3 = [realSre2stringByReplacingOccurrencesOfString:@" "withString:@""];

    

    

    NSString *realSre4 = [realSre3stringByReplacingOccurrencesOfString:@"\\"withString:@""];

    //

    //    NSString *realSre5 = [realSre4 stringByReplacingOccurrencesOfString:@")" withString:@""];

    

    

    

    //    NSArray *array = [realSre3 componentsSeparatedByString:@","];

    //

    //

    //

    //    return [array objectAtIndex:0];

    

    return realSre4;

    

}

09-23

http://blog.csdn.net/swingpyzf/article/details/18093959

cell 高度自适应

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值