自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(100)
  • 收藏
  • 关注

转载 iOS 系统自带磨玻璃代码

UIBlurEffect * b = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight]; UIVisualEffectView * v = [[UIVisualEffectView alloc]initWithEffect:b]; v.alpha = 0.5; v.frame = (C...

2017-07-21 14:57:00 198

转载 IOS中怎样把一个字符串倒序输出

NSString * str = @"abcdefg"; NSMutableString * string = [[NSMutableString alloc]initWithCapacity:str.length]; int j = (int)str.length; for (int i = j - 1; i >= 0; i--) { ...

2017-07-17 15:28:00 446

转载 iOS label的文字竖着显示

创建uilabel的分类//竖着显示.h写入@property (nonatomic) NSString *verticalText;.m写入- (NSString *)verticalText{ // 利用runtime添加属性 return objc_getAssociatedObject(self, @selector(verticalTex...

2017-07-03 14:36:00 469

转载 iOS 解决view出现黑线问题

_label = [[UILabel alloc] initWithFrame:self.bounds];_label = [[UILabel alloc] initWithFrame:CGRectIntegral(self.bounds)];CGRectIntegral()这个函数可以将小数类型的值转为整型frame的数值为小数时,像素渲染到屏幕上时会产生奇怪的黑影,就是那...

2017-06-23 11:37:00 694

转载 把现有Xcode项目上传到SVN服务器

1. 先在Xcode中添加SVN服务器仓库的地址 : (注意:最后一个斜杠必须要,而且必须是svn的根路径)Xcode -> Preferences -> Accounts -> Add Repository: https://svn.jointsky.com/svn/JointSkyEcosphere/2. 打开终端,进入已经存在的项目根目录,把项目添加到SVN...

2017-06-05 11:07:00 122

转载 iOS 捕获异常不崩

设置:/**统一捕获异常@param exception 异常信息*/void gloablException(NSException * exception) { #ifdef DEBUG // 异常信息打印 NSLog(@"异常信息:\n%@", exception); NSLog(@"异常堆栈信息:\n %@",...

2017-05-16 13:45:00 95

转载 iOS 证书那些事

http://www.cnblogs.com/wangyang1213/p/5209119.html转载于:https://www.cnblogs.com/tongyuling/p/6768043.html

2017-04-26 13:11:00 86

转载 iOS开发之 - 富文本

http://www.jianshu.com/p/10b7c87462fd转载于:https://www.cnblogs.com/tongyuling/p/6694244.html

2017-04-11 16:48:00 78

转载 IOS研究之App转让流程须知详细介绍

http://blog.csdn.net/donghong2008/article/details/38020855转载于:https://www.cnblogs.com/tongyuling/p/6673316.html

2017-04-06 14:29:00 144

转载 关于AppStore加急审核

1、在iTunesconnect页面,点击右上角的“?”图标,在弹出菜单中选择“联系我们”2、然后在Contact Us页面,选择“App Review” —> “App Store Review” —>” Request Expedited Review”最后在表格里填写相关信息,其中最重要的写你需要加急审核的原因。一般是写要赶某个重大节日运营节点,或者紧急...

2017-03-29 11:00:00 121

转载 iOS 在cell外部获取cell选中的row

UIView *v = [textView superview];//获取父类view UIView *v1 = [v superview]; JWTYLIncomeInformationCell *cell = (JWTYLIncomeInformationCell *)[v1 superview];//获取cell NSIndexPath *in...

2017-03-22 13:52:00 366

转载 iOS HTTP状态码查询手册

http://www.guhei.net/post/jb1153转载于:https://www.cnblogs.com/tongyuling/p/6265615.html

2017-01-09 16:10:00 101

转载 iOS 去掉 textfield 键盘上部的联想条

self.textfield.autocorrectionType = UITextAutocorrectionTypeNo;转载于:https://www.cnblogs.com/tongyuling/p/6249495.html

2017-01-04 17:26:00 494

转载 iOS textfield输入时获取字数

delegeate 方法:- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string获取长度:NSUInteger proposedNewLength = textField.text.l...

2016-12-02 16:35:00 225

转载 iOS xcode8 运行去掉系统打印的日志

升级到 iOS10后,运行程序,打印台会出现许多乱码七糟的打印日志,在工程配置中可以将其去掉(每个工程都需要添加)解决方法:Xcode8里边 Edit Scheme... -> Run -> Arguments,(快捷键:shift + command + <) 在Environment Variables里边添加 OS_ACTIVITY_MODE= disabl...

2016-11-30 16:03:00 134

转载 iOS UIView自适应总结

附件 :http://www.jianshu.com/p/ce26f05cd7cc转载于:https://www.cnblogs.com/tongyuling/p/6096818.html

2016-11-24 10:47:00 285

转载 iOS 设置左上和左下为圆角方法

1.先定义一个 label2.//左上&左下为圆角 UIBezierPath * maskPath = [UIBezierPath bezierPathWithRoundedRect:label.bounds byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerTopLeft cornerRadii:CGSiz...

2016-11-22 09:56:00 384

转载 iOS 调整导航栏返回按钮的位置

调整导航栏返回按钮的位置//创建返回按钮UIButton * leftBtn = [UIButton buttonWithType:UIButtonTypeSystem];leftBtn.frame = CGRectMake(0, 0, 25,25);[leftBtn setBackgroundImage:[UIImage imageNamed:@"icon_back"] f...

2016-10-11 10:22:00 571

转载 iOS 通过dSYM文件分析crash

http://blog.csdn.net/openglnewbee/article/details/38824139转载于:https://www.cnblogs.com/tongyuling/p/5900251.html

2016-09-23 15:37:00 78

转载 iOS 适配ios10的权限问题

转载于:https://www.cnblogs.com/tongyuling/p/5884129.html

2016-09-19 10:18:00 66

转载 喷枪打字动画

#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *titleLabel;@property (copy , nonatomic)NSString *contentStr;@end@implementat...

2016-09-13 10:08:00 93

转载 iOS 禁用第三方输入键盘方法

//禁用第三方输入键盘- (BOOL)application:(UIApplication*)application shouldAllowExtensionPointIdentifier:(NSString*)extensionPointIdentifier{ returnNO;}转载于:https://www.cnblogs.com/tongyulin...

2016-08-30 17:24:00 265

转载 iOS navigationBar和tabBar变透明 & navigationBar根据滑动距离的渐变色实现

navigationBar变为纯透明 //第一种方法 //导航栏纯透明 [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //去掉导航栏底部的黑线 self.navigationBar.shadowIma...

2016-08-30 15:52:00 234

转载 iOS 图片上绘制文字

- (UIImage *)imageWithTitle:(NSString *)title fontSize:(CGFloat)fontSize{ //画布大小 CGSize size=CGSizeMake(self.size.width,self.size.height); //创建一个基于位图的上下文 UIGraphicsBeginImag...

2016-08-30 15:42:00 238

转载 iOS 关于NSDateFormatter的格式

G: 公元时代,例如AD公元yy: 年的后2位yyyy: 完整年MM: 月,显示为1-12MMM: 月,显示为英文月份简写,如 JanMMMM: 月,显示为英文月份全称,如 Janualydd: 日,2位数表示,如02d: 日,1-2位显示,如 2EEE: 简写星期几,如SunEEEE: 全写星期几,如Sundayaa: 上下午,AM/PMH:...

2016-08-30 15:16:00 100

转载 iOS 修改UITextField中Placeholder的文字颜色

[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];转载于:https://www.cnblogs.com/tongyuling/p/5822145.html

2016-08-30 15:14:00 100

转载 iOS NSArray 快速求总和、最大值、最小值、平均值的方法

NSArray *array = [NSArray arrayWithObjects:@"2.0", @"2.3", @"3.0", @"4.0", @"10", nil]; CGFloat sum = [[array valueForKeyPath:@"@sum.floatValue"] floatValue]; CGFloat avg = [[array ...

2016-08-30 15:09:00 179

转载 iOS 修改状态栏的颜色方法

调用: [self setStatusBarBackgroundColor:[UIColor orangeColor]];- (void)setStatusBarBackgroundColor:(UIColor *)color{ UIView *statusBar = [[[UIApplication sharedApplication] valueForKe...

2016-08-30 15:08:00 71

转载 iOS UITableView小技巧

UITableView的Group样式下顶部空白处理在viewWillAppear里面添加如下代码://分组列表头部空白处理CGRect frame = myTableView.tableHeaderView.frame;frame.size.height = 0.1;UIView *headerView = [[UIView alloc] initWithFrame...

2016-08-30 15:02:00 103

转载 iOS btn实现collectionView方法

NSArray * name = @[@"1",@"2",@"3",@"4"]; for (int i = 0; i<name.count; i++) { UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(20+i%(name.count-1)*...

2016-08-30 10:46:00 102

转载 自动布局库SDAutoLayout(一行代码搞定自动布局)

* SDAutoLayout地址:https://github.com/gsdios/SDAutoLayout* SDAutoLayout视频教程:http://www.letv.com/ptv/vplay/24038772.html* SDAutoLayout用法示例:https://github.com/gsdios/SDAutoLayout/blob/master/R...

2016-08-26 17:14:00 189

转载 iOS 导航返回第 x 界面

x:你想返回的第几个界面返回方法:int index = (int)[[self.navigationController viewControllers]indexOfObject:self]; [self.navigationController popToViewController:[self.navigationController.viewControlle...

2016-08-24 10:14:00 72

转载 iOS 语音

#import <AVFoundation/AVFoundation.h>@property (nonatomic, strong) AVSpeechSynthesizer *synthesizer;- (void)viewDidLoad{ [super viewDidLoad]; self.synthesizer = [[A...

2016-07-15 09:56:00 86

转载 iOS 归档解档

归档: NSMutableData *data = [[NSMutableData alloc] init]; //创建归档辅助类 NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data]; //编码 [archiver...

2016-06-27 17:45:00 141

转载 设置textview的限制字数(含中文)

#pragma mark 设置textview的限制字数(含中文)-(void)textViewDidChange:(UITextView*)textView{ NSString*textString = textView.text; NSString*language = textView.textInputMode.primaryLanguage;...

2016-06-15 14:24:00 547

转载 ios学习项目

https://github.com/Tim9Liu9/TimLiu-iOS#%E5%AE%8C%E6%95%B4%E9%A1%B9%E7%9B%AE转载于:https://www.cnblogs.com/tongyuling/p/5566477.html

2016-06-07 11:49:00 87

转载 iOS UIImageView Gif 动画

//设置gif图片的播放速率 self.imageView.animationDuration = 1.0f; //设置gif图片数组 self.imageView.animationImages = imageArray; //设置gif图片播放的重复次数,-1为无穷次 self.imageView.animationRepeat...

2016-06-07 10:00:00 120

转载 iOS 图片对不上 imageView 怎么办

//图片适应尺寸 self.imageView.contentMode = UIViewContentModeScaleToFill; //填充 self.imageView.clipsToBounds = NO; // 裁剪边缘转载于:https://www.cnblogs.com/tongyuling/p/5556877.htm...

2016-06-03 16:57:00 115

转载 iOS 获取今年指定月的天数

//调用NSInteger i = [self howManyDaysInThisMonth:2];NSLog(@"%ld",(long)i);// 获取今年指定月的天数- (NSInteger)howManyDaysInThisMonth :(NSInteger)imonth { int year = [[self years][0] intValue]...

2016-06-01 14:08:00 120

转载 iOS 如何检测应用更新?

如何检测应用更新?你可以使用友盟等第三方工具,但如果你只想使用轻量级的方法,只需GET这个接口:http://itunes.apple.com/lookup?id=你的应用程序的ID,解析返回的json字符串就行。转载于:https://www.cnblogs.com/tongyuling/p/5546643.html...

2016-05-31 17:24:00 109

空空如也

空空如也

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

TA关注的人

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