iPhone学习

2015-12-02  本文已影响206人  文刂丽

2017/08/17 afnetworking报错415afnetworking报错3840

2014/08/16 将数组中的内容拼接成一个含有某个字符的字符串:

                        NSString *string = [array componentsJoinedByString:@","];

2017/08/15 渐变颜色颜色渐变

2017/08/03 statusBar相关, 给label添加删除线

2017/08/02 js与oc交互

2017/08/01 线程相关问题(This application is modifying the autolayout engin from a background thread,which can lead to engine corruption and weird crashes,This will cause an exception in a future rellease)

2017/07/31 修改项目名称移除git管理

2017/07/27 列表联动

2017/07/25 Xcode添加静态库配置常见问题

2017/07/24 CALayer属性 position和anchorPoint

2017/07/19 backgroundmode iOS后台任务设计指导后台任务官方文档

2017/07/14 runtime属性和成员变量, runtime机制

2017/07/12 runtime系列学习文章

2017/07/07 storyboard约束详解,讲的很详细很详细,还有一些不了解的特性需要到网上自己查一下。

storyboard的tabBarViewController与UINavigationController的嵌套

2017/06/26 友盟第三方登录按着文档走就可以,唯一需要注意的是:other linker flags 对应的值为-ObjC,一定是-ObjC, -ObjC, -ObjC,否则,sdk对接有问题。

2017/06/22 ios 阅读器

2017/06/13 iOS SDK原理与应用     另一篇

2017/06/12 启动图换成动态获取无果

2017/06/07 tableViewcell高度不确定处理技巧

2017/06/05 弹性动画原理与实现

2017/06/01 MVVM原理+代码

2017/05/26 tableView的headerView放webView

2017/05/26 使用软件功能的引导特效   实现的方法1  实现方法2

2017/05/25 tomcat7修改user之后无效果解决方法设置user.xml

2017/05/24 Xamarin.Forms

2017/05/24 mvc,mvp,mvvm

好的iphone学习文章总结

另一个网站,常用的技术博客

GitHub:https://github.com/JanzTam/iOS-blog-acticle/blob/master/acticles.md

iOS技术点

iOS开发文档

2017/04/06 iOS架构模式:http://www.cocoachina.com/ios/20160108/14916.html

2017/04/19 iOS 应用中设置屏幕亮度

2017/04/19 SVN submit时提示 is not under control 解决方法

2017/04/19 MJRefresh刷新

2017/04/19 定义不同类型可变cell

2017/40/21 更改状态栏、导航栏颜色

2017/04/21 动态更新启动图,包括gif,jpg,png,mp4 这里有你想要的启动图功能

另外一个比较简单的更新启动图BBLaunchAdMonitor

2017/04/21 仿网易新闻 这里主要学习了如何处理html中的数据信息,以及如何添加自己需要的数组在html中

2017/04/21 FMDB相关

http://www.cnblogs.com/whoislcj/p/5492338.html

http://blog.csdn.net/gbking/article/details/52586864

2017/04/21 iOS进阶书籍

http://www.cocoachina.com/programmer/20170122/18604.html

http://www.2cto.com/kf/201506/410696.html

2017/04/21 iOS组建开发

ios组件化开发

前端组件化开发

这个不错

2017/04/21 文件下载

2017/04/24 视频弹幕

2017/04/25 视频加载一直出现skipping input stream 0 0 0x0

                     腾讯云视频集成

2017/04/27 iOS // Use the default rendering mode for the context where the image is used加密 和 MD5 Base64加密

2017/04/27 获取视频路径

//获取视频播放路径

NSString *str = [[NSBundle mainBundle] resourcePath];

NSString *filePath = [NSString stringWithFormat:@"%@%@",str,@"/123.mp4"];

NSLog(@"%@",filePath);

另一个思路:

-(void)assetPickerController:(ZYQAssetPickerController )picker didFinishPickingAssets:(NSArray )assets{

//TODO:

for (ALAsset *asset in assets) {

NSLog(@"HERE\n asset.defaultRepresentation.url = %@\n asset.defaultRepresentation.filename = %@",asset.defaultRepresentation.url, asset.defaultRepresentation.filename);

[self saveVideoToApp:nil asset:asset];

// 我想在这里拿到视频文件

ALAssetRepresentation *representation = asset.defaultRepresentation;

if ([mediaType isEqualToString:ALAssetTypeVideo]) {

long long size = representation.size;

NSMutableData* data = [[NSMutableData alloc] initWithCapacity:size];

void* buffer = [data mutableBytes];

[representation getBytes:buffer fromOffset:0 length:size error:nil];

NSData *fileData = [[NSData alloc] initWithBytes:buffer length:size];

//File URL

NSString *savePath = [NSString stringWithFormat:@"%@%@", [NSHomeDirectory() stringByAppendingString:@"/tmp/"], representation.filename];

[[NSFileManager defaultManager] removeItemAtPath:savePath error:nil];

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void)  {

[fileData writeToFile:savePath atomically:NO];

});

}

}

}

原文链接

获取相册、视频(photoKits)

获取相册、视频(AssetsLibary)

2017/04/28 数据库缓存策略            数据库缓存(详细)         数据库离线缓存思想及网络层封装

2017/05/02 导航栏    滑动隐藏/显示导航栏 

2017/05/05 缩放照片大小      另一篇文章

UIImage *allImage = [CommonMethed resizeImage:[UIImage sd_imageWithData:data] toWidth:32.0f height:32.0f] ; // data是网络图片地址通过[NSData dataWithContentsOfURL:]这个方法得到的。sd_imageWithData:SDWebImageView中的方法

tabBarController.tabBarItem.selectedImage = [allImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

UIImageRenderingModeAlwaysOriginal 这个设置,为了防止请求下来的图片不正常显示。

另外的模式还有:

UIImageRenderingModeAlwaysTemplate:// Always draw the image as a template image, ignoring its color information

UIImageRenderingModeAutomatic:// Use the default rendering mode for the context where the image is used

设置该tabBarItem的位置(当没有下面的文字时,图片位置偏上)

tabBarController.tabBarItem.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0);

2017/05/08 UIview设置背景图片

设置由storyboard创建的navigationBar的背景颜色:

[[UINavigationBar appearance] setBarTintColor:[UIColor greenColor]];

2017/05/15 刷新tableView的某个cell:

//一个section刷新

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];

[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];

//一个cell刷新

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

为了节省网络资源,类似于+1的操作,可以根据这种方法直接实现视觉+1效果,而不用调用接口访问数据库中的数据,刷新列表。

2017/05/16 const修饰变量代表的含义

2017/06/17 在app不允许横竖屏切换情况下,使某一个VC可以横屏的方法

图标像素

2017/05/19 struts2错误:there is no action mapping for namespace / and actionname

上一篇 下一篇

猜你喜欢

热点阅读