自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (1)
  • 收藏
  • 关注

原创 ARKit displayTransform部分实现

+(CGAffineTransform)getCGAffineTransformTransformWithViewSize:(CGSize)viewSize cameraSize:(CGSize)cameraSize orientation: (Orientation)orientation { CGFloat a = 1.0 ,b = 0.0 ,c = 0.0 ,d = 1.0 ,tx = 0.0 ,ty = 0.0; if (orientation =...

2021-11-15 17:27:31 1278

原创 隐私政策

一.《隐私政策》适用的范围和内容感谢您选择使用我们的产品, 在使用我们的产品前,请仔细阅读我们的《隐私政策》。您对我们的产品的使用,将被视为您完全接受本《隐私政策》,并承诺遵守所有适用的法律和法规。如果您不同意我们的《隐私政策》,请勿使用我们的产品,如果您已经开始使用我们的产品,请您立即终止使用,您的使用行为,即视为您同意本《隐私政策》适用于您。二.更新根据法律和监管政策变化,我们的《隐私政...

2020-03-28 01:39:09 415

原创 mac版myeclipse2017 ci10 破解教程(最终修改版,按照教程一次成功)

破解文件传送门一、安装JDK(如果安装过了直接跳过,目前测试只有jdk1.6,1.7,1.8等版本可以打开破解文件,最新版jdk10在我的电脑上是不能打开破解软件的)    1.打开终端    2.先输入以下命令安装homebrew(安装过的可以直接跳过)     /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Ho...

2018-05-04 18:26:29 2681 2

原创 iOS开发 纯代码屏幕适配

重写CGRectMakeCG_INLINE  CGRect CGRectMake1(CGFloat x,CGFloat y,CGFloat width,CGFloat height){       CGRect rect;             CGFloat autoSizeX = [UIScreenmainS

2016-06-03 18:56:36 459

原创 iOS开发关于上传图片后,图片发生旋转的处理

- (UIImage *)normalizedImage:(UIImage *)sourceImage {    if (sourceImage.imageOrientation ==UIImageOrientationUp)        return sourceImage;        UIGraphicsBeginImageContextWithOpt

2016-06-02 11:37:37 560

原创 iOS开发Textfield输入纯数字

- (BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)string{    NSCharacterSet*cs;    cs = [[NSCharacterSetch

2016-05-31 19:54:00 2376

原创 iOSm转化Km

+(NSString *)distanceWithStringMTransformKm:(NSString *)string{    if (string.intValue1000) {                return [NSStringstringWithFormat:@"%.0fm",string.floatValue];    }els

2016-05-18 14:56:44 923

原创 presentViewController多级跳转返回

UIViewController *rootVC = self.presentingViewController;                 while (rootVC.presentingViewController) {           rootVC = rootVC.presentingViewController;          }

2016-05-17 15:37:34 689

原创 iOS身份证号判断

-(BOOL)validationTrue:(NSString *)idNum{    BOOL flag;    NSString *regex2 =@"^(^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$)|(^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1

2016-04-25 16:59:54 349

原创 UIButton 字体居左

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

2016-02-10 16:04:13 430

原创 iOS开发之字符串显示不同的颜色

NSString *contentStr = @"简介:hello world"; NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithString:contentStr]; //设置:在0-3个单位长度内的内容显示成红色 [str addAttribute:NSForegroundColorA

2016-02-03 18:12:46 417

原创 UITableView 分组头视图取消悬浮

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {   CGFloat sectionHeaderHeight = 10;   if (scrollView.contentOffset.ycontentOffset.y>=0) {        scrollView.contentInset =UIEdg

2016-01-26 12:00:12 2149

原创 iOS开发之根据图片宽高等比例压缩图片

+(CGSize)compressionSizeWithImageWidth:(NSString *)width height:(NSString *)height{   CGSize sourceSize=CGSizeMake(width.floatValue, height.floatValue);   CGFloat w=sourceSize.width;   

2016-01-08 09:24:04 1717

原创 iOS开发之imageView居中显示图片

[imageView setContentScaleFactor:[[UIScreenmainScreen] scale]];imageView.contentMode = UIViewContentModeScaleAspectFill;imageView.autoresizingMask =UIViewAutoresizingFlexibleHeight;ima

2016-01-06 13:58:57 3108

原创 自定义UISearchiBar

1、@interface MySearchBar :UISearchBar@end2、@implementation MySearchBar-(void)layoutSubviews{    [superlayoutSubviews];   UITextField *searchTextField=ni

2016-01-04 10:56:46 272

原创 取消UITableViewCell的分割线偏移问题

1、在viewDidLoad中调用if ([self.tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {                [self.tableViewsetSeparatorInset:UIEdgeInsetsZero];            }    

2016-01-04 10:52:57 467

原创 iOS开发之UitableViewCell中UISwitch的使用,代理实现

1、Cell中的l.h文件中添加代理方法@class settingCell;@protocol settingCellDelegate NSObject>-(void)updateSwitchAtCell:(settingCell *)cell mySwitch:(UISwitch *)mySwitch;@end2、声明

2015-12-31 10:43:08 3226

原创 iOS开发之无限轮播图片

1、声明 NSTimer *_timer;2、 (void)viewDidLoad中调用[selfcreateTimer]3、实现-(void)changeImage{        if (_pageControl.currentPage==self.imageData.count-1) {       _pag

2015-12-30 14:07:17 352

原创 iOS开发之圆形头像

声明一个对象:@property (strong,nonatomic)UIImageView *headeImage;.m文件实现- (UIImageView *)headeImage {    if (!_headeImage) {        _headeImage=[[UIImageViewalloc] initWithFrame:CGRectMak

2015-12-29 13:11:08 336

空空如也

空空如也

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

TA关注的人

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