随笔分类 - 自我整理
摘要:最近项目中用到了很多的图表,如柱状图,线状图,饼状图等等。接触到了一个新的第三方Charts,在做图方面确实非常强大,在使用了一段时间后,今天对他进行一个小的总结,也是自己的一点小理解。 关于charts图的基本的创建与一些基本的属性就不多一一赘述了,下面说一下我平时用到的,大家可能理解不太深刻的一
阅读全文
摘要:这种是不验证证书的密钥 AFSecurityPolicy *policy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone]; policy.allowInvalidCertificates = YES; policy.va
阅读全文
摘要://一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAut
阅读全文
摘要:设置appicon General – App Icon Source 设置AppIcon 图片大小 iphone 6P(@3x) 180x180 iphone 6(@2x) iphone5/5s (@2x) 120x120 iphone4/4s (@2x) 设置launchimage 第一种方法
阅读全文
摘要:1.函数无限递归爆栈(表视图返回Cell和返回行高的方法互相调用)2.某对象无法解析某个方法(没做类型转换、或者代理没实现某个方法)3.访问了某个已经被释放的对象(ARC之后不太有)4.从Bundle加载了不存在或者不支持的对象(图片素材之类的)5.子线程阻塞主UI线程过久
阅读全文
摘要:// 设置tabbar的角标[[[[[self tabBarController] viewControllers] objectAtIndex: 0] tabBarItem] setBadgeValue:[NSString stringWithFormat:@"%ld",(long)number]...
阅读全文
摘要:ios7中,UITableViewCell左侧会有默认15像素的空白。设置setSeparatorInset:UIEdgeInsetsZero 能将空白去掉。ios8中,setSeparatorInset:UIEdgeInsetsZero 的设置已经不起作用了。工程中添加如下代码便可解决:self....
阅读全文
摘要:https://github.com/beecloud/beecloud-ios
阅读全文
摘要://详细操作步骤http://www.csdn.net/article/2015-01-23/2823686-healthkit-tutorial-with-swift//官方apihttps://github.com/WildDylan/appleSample
阅读全文
摘要:首先要导入头文件#import "UIKit+AFNetworking.h"方法如下:[personImageView setImageWithURL:[NSURL URLWithString:imageUrlString] placeholderImage:[UIImage imageNamed:...
阅读全文
摘要:@interface AppDelegate () @end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary ...
阅读全文
摘要:NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];NSString *currentVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];cell.te...
阅读全文
摘要:1.将设计好的图片,拖拽到Groups&Files的Resources目录下;2.修改Resources目录下的“工程名-info.plist”文件3.修改该文件的Iconfile属性,填写拖入图片的名称,保存该文件。4.Build and Run工程即可。说明:iPhone对应用程序的Icon尺寸...
阅读全文
摘要:cell.Projreview.layer.cornerRadius = 5; cell.AnmiProjiectView.layer.cornerRadius = 5; cell.Headimage.layer.cornerRadius = 20; cell.AnmHeadimage.lay...
阅读全文
摘要:- (void)viewDidLoad{ [super viewDidLoad]; _datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 100, 320, 400)];// 设置picker显示的样式 _dateP...
阅读全文
摘要:_content = [UILabel new]; _content.text = @"日落时分,沏上一杯山茶,听一曲意境空远的《禅》,心神随此天籁,沉溺于玄妙的幻境里。仿佛我就是那穿梭于葳蕤山林中的一只飞鸟,时而盘旋穿梭,时而引吭高歌;仿佛我就是那潺潺流泻于山涧的一汪清泉,涟漪轻盈,浩...
阅读全文