- - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //定义UIScrollView //self.scrollView = [[UI... - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //定义UIScrollView //self.scrollView = [[UI...
- -(void)CWriteFile:(NSString*)logStr isLogTime:(BOOL)_isLogTime{ /获取路径 NSString *sandboxPath = NSHomeDirectory(); NSString *documentPath = [sandboxPath str... -(void)CWriteFile:(NSString*)logStr isLogTime:(BOOL)_isLogTime{ /获取路径 NSString *sandboxPath = NSHomeDirectory(); NSString *documentPath = [sandboxPath str...
- 1、打开摄像头- (IBAction)Open:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; if([UIImagePickerController isSourceTypeAvailable:... 1、打开摄像头- (IBAction)Open:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; if([UIImagePickerController isSourceTypeAvailable:...
- //获取家目录路径的函数: NSString *homeDir = NSHomeDirectory(); ///document NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomain... //获取家目录路径的函数: NSString *homeDir = NSHomeDirectory(); ///document NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomain...
- WXPay+MD5.h //// NSObject+MD5.h// NEWDLD//// Created by zz on 16/7/28.// Copyright © 2016年 dld. All rights reserved.// #import <Foundation/Foundation.h>#impo... WXPay+MD5.h //// NSObject+MD5.h// NEWDLD//// Created by zz on 16/7/28.// Copyright © 2016年 dld. All rights reserved.// #import <Foundation/Foundation.h>#impo...
- //身份证号 + (BOOL)CheckIsIdentityCard: (NSString *)identityCard { //判断是否为空 if (identityCard==nil||identityCard.length <= 0) { return NO; ... //身份证号 + (BOOL)CheckIsIdentityCard: (NSString *)identityCard { //判断是否为空 if (identityCard==nil||identityCard.length <= 0) { return NO; ...
- 文章目录 引言 I 日历的使用 1.1 两个时间的比较(NSDateComponents) 1.2 时间获取 II 案例 ... 文章目录 引言 I 日历的使用 1.1 两个时间的比较(NSDateComponents) 1.2 时间获取 II 案例 ...
- //// MoveScaleImageController.h// MoveScaleImage//// Created by on 12-4-24.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.// #import <UIKit/UIKit.... //// MoveScaleImageController.h// MoveScaleImage//// Created by on 12-4-24.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.// #import <UIKit/UIKit....
- //调用 UIImage *qrcode = [self createNonInterpolatedUIImageFormCIImage:[self createQRForString:@"http://www.baidu.com"] withSize:190.0f]; UIImage *customQrcode = [... //调用 UIImage *qrcode = [self createNonInterpolatedUIImageFormCIImage:[self createQRForString:@"http://www.baidu.com"] withSize:190.0f]; UIImage *customQrcode = [...
- http://www.zdoz.net 尽管iPhone不允许同时运行两个应用程序,我们可以从自己的应用程序中启动另一个应用程序,并且可以在应用程序之间共享数据。我们可以使用UIApplication类的openURL:方法从一个应用程序来启动另一个应用程序。例如,要在Safari应用程序中打开Google主页,我们可以编写如... http://www.zdoz.net 尽管iPhone不允许同时运行两个应用程序,我们可以从自己的应用程序中启动另一个应用程序,并且可以在应用程序之间共享数据。我们可以使用UIApplication类的openURL:方法从一个应用程序来启动另一个应用程序。例如,要在Safari应用程序中打开Google主页,我们可以编写如...
- 一般自定义View 代码方式 有 在初始化的时候添加 子Views [cpp] view plain copy ... 一般自定义View 代码方式 有 在初始化的时候添加 子Views [cpp] view plain copy ...
- //1、首先在appDelegate中,把view添加到window中有两种方式、 self.window.rootViewController = self.view;[self.window addSubview:self.view.view]; //但是如果用第二种的话,在ios6.0中 再去设置屏幕旋转是没有任何效果的,必须... //1、首先在appDelegate中,把view添加到window中有两种方式、 self.window.rootViewController = self.view;[self.window addSubview:self.view.view]; //但是如果用第二种的话,在ios6.0中 再去设置屏幕旋转是没有任何效果的,必须...
- -(void)keyboardChange:(NSNotification*)notice { NSValue *value = [[notice userInfo] objectForKey:@"UIKeyboardFrameEndUserInfoKey"]; float keyEnd_y = [value CGRec... -(void)keyboardChange:(NSNotification*)notice { NSValue *value = [[notice userInfo] objectForKey:@"UIKeyboardFrameEndUserInfoKey"]; float keyEnd_y = [value CGRec...
- -(void)touchSaveLocal{ //ABAddressBookRef addressBook = ABAddressBookCreate(); //初始化一个record ABRecordRef person = ABPersonCreate(); ABAddressBookRef addr... -(void)touchSaveLocal{ //ABAddressBookRef addressBook = ABAddressBookCreate(); //初始化一个record ABRecordRef person = ABPersonCreate(); ABAddressBookRef addr...
- var ver = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); ver = parseInt(ver[1], 10); if(ver<7) { alert("需要IOS7及以上才可安装"); return; } var ver = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); ver = parseInt(ver[1], 10); if(ver<7) { alert("需要IOS7及以上才可安装"); return; }
上滑加载中
推荐直播
-
华为云码道-AI时代应用开发利器2026/03/18 周三 19:00-20:00
童得力,华为云开发者生态运营总监/姚圣伟,华为云HCDE开发者专家
本次直播由华为专家带你实战应用开发,看华为云码道(CodeArts)代码智能体如何在AI时代让你的创意应用快速落地。更有华为云HCDE开发者专家带你用码道玩转JiuwenClaw,让小艺成为你的AI助理。
回顾中 -
Skill 构建 × 智能创作:基于华为云码道的 AI 内容生产提效方案2026/03/25 周三 19:00-20:00
余伟,华为云软件研发工程师/万邵业(万少),华为云HCDE开发者专家
本次直播带来两大实战:华为云码道 Skill-Creator 手把手搭建专属知识库 Skill;如何用码道提效 OpenClaw 小说文本,打造从大纲到成稿的 AI 原创小说全链路。技术干货 + OPC创作思路,一次讲透!
回顾中 -
码道新技能,AI 新生产力——从自动视频生成到开源项目解析2026/04/08 周三 19:00-21:00
童得力-华为云开发者生态运营总监/何文强-无人机企业AI提效负责人
本次华为云码道 Skill 实战活动,聚焦两大 AI 开发场景:通过实战教学,带你打造 AI 编程自动生成视频 Skill,并实现对 GitHub 热门开源项目的智能知识抽取,手把手掌握 Skill 开发全流程,用 AI 提升研发效率与内容生产力。
回顾中
热门标签