![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
凝望星辰
我是一位拥有十年以上经验的开发者,擅长iOS应用、Cocos游戏、Qt跨平台应用和音视频开发。我能用Objective-C或Swift开发高质量的iOS应用,利用Cocos创建2D和3D游戏,用Qt开发功能强大的桌面应用,以及处理音视频的采集、处理和播放。
展开
-
ios7Actionsheet 的显示
在头文件中加入代理 在.m文件里重写用到的代理函数 UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"ActionSheet" delegate:self cancelButtonTitle:@"cancel" destructiveButtonTitle:@"OK?" otherButtonTi原创 2013-10-24 22:32:01 · 871 阅读 · 0 评论 -
ios&mac下编译protobuf C++静态库
公司项目中使用了protobuf-lua作为网络消息的传输格式,虽然使用protobuf有一段时间了,但是对于其使用环境的搭建还是不很清楚,趁着周末闲暇,就自己动手实践了一下。尽管网上有不少相关教程,但是当按照教程去做的时候,总会遇到各种各样的坑,把这些坑填完了,就会有一套自己的做事流程及注意的地方,这些都是宝贵的经验。 构建ios版静态库1.下载最新版本的protobuf原创 2015-05-17 18:43:14 · 5299 阅读 · 1 评论 -
ios文件操作
1.NSFIleManager 获取文件名 //文件管理: //创建一个文件管理器 //NSFileManager * fm = [[NSFileManager alloc]init]; NSError * error;//error输出参数 理解输入输出参数 ,传指针可以跨栈获取数据。 NSFileManager原创 2013-11-23 23:27:46 · 788 阅读 · 0 评论 -
记录下FMDB的简单使用
软件开发中常用到数据库,而移动开发中sqlite3是最常用的,IOS早就支持了sqlite数据库。由于直接使用sqlite操作数据库不太方便,于是有了很多基于系统sqlite封装的第三方库,FMDB就是其中非常出色的一个,他使用起来灰常简单。下面是我的学习笔记,写在这里为初学者提供参考。 使用FMDB首先在工程中导入libsqlite3.dylib ,并把从网上下载的FMDB第三方原创 2013-11-23 23:23:42 · 639 阅读 · 0 评论 -
IOS7手势识别
//添加一个view 给view加上各种手势查看效果 UIView *gestureTestView = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)] ; gestureTestView.backgroundColor = [UIColor greenColor]; //开启UIVIew的事件响应原创 2013-11-17 22:48:24 · 1134 阅读 · 0 评论 -
ios7 UIAnimation
//视图1 UIView *rootview01 = [[UIView alloc]init]; rootview01.tag = 101; rootview01.frame = CGRectMake(0, 20, 320, 460); rootview01.backgroundColor = [UIColor原创 2013-11-17 22:57:33 · 750 阅读 · 0 评论 -
自定义导航栏
VCOne *vc1 = [[VCOne alloc]init]; // [self.window setRootViewController:vc1]; //导航栏的高度是44 UINavigationController *navCtrl = [[UINavigationController alloc]initWithRootViewControlle原创 2013-10-23 21:37:12 · 588 阅读 · 0 评论 -
IOS7 UIPickerView
在头文件中饮用UIPickerView的两个代理 UIPickerView *pickerView = [[UIPickerView alloc]initWithFrame:CGRectMake(100, 250, 200, 100)]; pickerView.delegate = self ; pickerView.dataSource = self ;原创 2013-10-28 23:31:55 · 3178 阅读 · 0 评论 -
IOS7UISlider/UIProgressView/UISwitch/UISegmentedControl
//slider image can be changed UISlider *slider = [[UISlider alloc]initWithFrame:CGRectMake(10, 100, 100, 30)]; slider.value = 0.0f; [self.view addSubview:slider]; //switch im原创 2013-10-28 22:44:16 · 856 阅读 · 0 评论 -
UITextFeild Test
#import @interface subViewController : UIViewController@property(nonatomic ,strong)UITextField *textfield;@end@implementation subViewController@synthesize textfield;- (void)viewDidLoad原创 2013-10-26 12:24:00 · 706 阅读 · 0 评论 -
UITabBarController Test
//在AppDelegate.cpp中实现 subViewController *subView = [[subViewController alloc]init]; UITabBarItem *sbuViewBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemBookmar原创 2013-10-26 22:57:02 · 620 阅读 · 0 评论 -
在UITextView中调用UIWebView打开网页
1.首先在头文件中添加两个协议2.在.m文件中实现以下代码 textview = [[UITextView alloc]initWithFrame:CGRectMake(100, 100, 200, 300) ]; textview.textColor = [UIColor blueColor]; textview.textAlignment = kCTCe原创 2013-10-26 13:11:05 · 1201 阅读 · 0 评论 -
Xcode添加ios项目的空白模板
首先在网上下载一个空得Xcode模板,下载地址如下http://download.csdn.net/detail/zheng19880607/9212057应用程序Xcode ▸ 显示包内容 ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneOS.platform▸ Developer ▸ Library ▸ Xcode ▸ Template转载 2015-10-25 21:01:28 · 613 阅读 · 0 评论