我们走失在这个九月。

来源:互联网 发布:linux驱动开发工程师 编辑:程序博客网 时间:2024/04/30 21:25

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:jsonoptions: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
原创粉丝点击