学习iPhone UIKit 9
学习iPhone UIKit 9
1、操作表中的控件;
- (void)buttonDidPush
{
UIActionSheet* sheet = [ [ [ UIActionSheet alloc ] init ] autorelease ];
sheet.delegate = self;
[ sheet addButtonWithTitle: @"action1" ];
[ sheet addButtonWithTitle: @"delete" ];
[ sheet addButtonWithTitle: @"cancel" ];
sheet.cancelButtonIndex = 2;
sheet.destructiveButtonIndex = 1;
[ sheet showInView: self.view ];
//如此也可实现相同的功能
// UIActionSheet* sheet2 = [ [ [ UIActionSheet alloc ] initWithTitle: nil delegate: self cancelButtonTitle:@"取消" destructiveButtonTitle: nil otherButtonTitles:@"action1",@"action2", nil ] autorelease ];
// [ sheet showInView: self.view ];
}
2、编辑菜单的显示;
//
// LikMenu.h
// likTwoHelloWorld
//
// Created by apple on 13-1-31.
// Copyright 2013年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LikMenu : UIViewController {
@private
UILabel* label_;
CGPoint touchPoint_;
}
@end
3、画面中图片的复制、剪切、粘贴;
//
// UIKitPrjCopyAndPaste.h
// likTwoHelloWorld
//
// Created by apple on 13-1-31.
// Copyright 2013年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIKitPrjCopyAndPaste : UIViewController {
@private
CGPoint touchPoint_;
}
- (UIImageView*)imageContainsPoint:(CGPoint)point;
@end
4、使用相册;
//
// LikImagePicker.h
// likTwoHelloWorld
//
// Created by apple on 13-1-31.
// Copyright 2013年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LikImagePicker : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate>{
@private
UIImageView* imageView_;
}
@end
5、简单的操作表;
#import <UIKit/UIKit.h>
@interface LikActionSheet : UIViewController
<UIActionSheetDelegate>
{
}
@end
//
// LikImagePicker.h
// likTwoHelloWorld
//
// Created by apple on 13-1-31.
// Copyright 2013年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LikImagePicker : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate>{
@private
UIImageView* imageView_;
}
@end
6、使用摄像头;
学习iPhone UIKit 9相关推荐
- ios学习--iphone开发笔记和技巧总结(原址持续更新)
ios学习--iphone开发笔记和技巧总结(原址持续更新) 分类: ios Object-C2012-04-18 10:16 2716人阅读 评论(1) 收藏 举报 uiviewiphonelist ...
- iOS学习——Quartz2D学习之UIKit绘制
iOS学习--Quartz2D学习之UIKit绘制 1.总述 在IOS中绘图技术主要包括:UIKit.Quartz 2D.Core Animation和OpenGL ES.其中Core Animati ...
- 学习iphone开发
想想学习iphone开发已经半年时间,其中经历了对一个全新系统的新奇,兴趣,充满激情.总体来说苹果的系统是非常令人兴奋的.无论苹果令人耳目一新的操作系统到她的高贵典雅的iphone系统,无论他的obj ...
- 如何学习iphone游戏开发
注意,我本人也是刚接触iphone游戏开发不久,之前完全没有mac开发相关经验,只有一些c/c++和java的编程经验. 所以,我想谈一谈我在学习过程中的一些心得和体会.当然,我还会继续学习下去,如果 ...
- iOS学习路线图--UIKIt概述
1.先分享一张iOS学习路线图吧,网上找的,感觉不错 2.再来一张UIkit类框架图,也是网上找的 3.UIkit各类概述 1.UIAcceleration: 被叫做加速事件的一个UIAccelera ...
- 学习iPhone开发中 sqlite3的使用
由于我主要负责我们小组项目数据库模块的部分所以这几天都一直在研究在iphone中最为常用的一个简单数据库sqlite,自己也搜集很多资料,因此在这里总结一下这几天的学习成果: 1.Sqlite操作简明 ...
- ios学习--iPhone/ipod摄像头设备获取
LINK ADDRESS:http://www.cocoachina.com/bbs/read.php?tid=51754&fpage=2 又写了个新版的帖子,看不懂怎么用的看本人这个新贴,在 ...
- ios学习--iphone ipa打包文件制作
iphone ipa打包文件制作 在XCode下做ipa很简单,现在我们来说说步骤.. 1.选择Device - 3.0 | Release模式,然后build 2.到程序目录的bulid文件夹下,打 ...
- ios学习--iphone开发私房菜_5_] iphone中如何实现下拉菜单 .
iPhone 中的下拉菜单,或者说选择器一般演变成了Picker,或者UIActionSheet,而前者虽然使用方便,但是占据了非常大的屏幕空间,无法调整.而后者占据空间也很大,而且使用非常受限,垂直 ...
最新文章
- Angualr设置自定义管道Pipe(类似Vue的过滤器filters)货币格式化(实现内置管道CurrencyPipe的功能)
- banana pi BPI-R1 原理图下载地址:
- Linux中vi的常用命令和快捷键使用
- Mac上因磁盘格式导致gulp无限刷新问题
- 基于MATLAB的面向对象编程(5)——对象的保存(save)和载入(load)
- C语言将任意的正整数按反序输出
- [Python人工智能] 二十八.Keras深度学习中文文本分类万字总结(CNN、TextCNN、LSTM、BiLSTM、BiLSTM+Attention)
- python average函数详解_python 函数详解
- python中sorted函数的用法_Python3 中sorted() 函数的用法
- java aspose 导出word_使用aspose.word 第三方的插件实现导出word
- kaggle账号_kaggle是什么?对找工作的帮助!如何入门kaggle?
- sql azure 语法_使用Visual Studio和SQL Azure数据库
- php 连等赋值,变量赋值时的,多个变量连等的问题
- java json 打印出来_如何使用Java漂亮地打印现有的JSON数据?
- html格式kindle能看吗,Kindle Voyage支持哪些文本格式
- 【网站】比较知名的大型公司官网清单可以收藏关注一下,欢迎您来补充
- 2021年吹过的牛都实现了吗?2022年你又期待遇见怎样的自己?
- 蓝湖访问显示“加载遇到问题”
- 人工蜂群算法(Artificial Bee Colony, ABC)MATALAB代码详细解析
- Windows Sever 2016 创建DNS服务器并配置转发器及条件转发器
热门文章
- ArkID 一账通:企业级开源IDaaS/IAM平台系统
- 创建ITable不能更新记录的问题
- 验证是否正确迁出CESM2
- 关于在工作中遇到的问题及解决方案
- 邮箱大师支持html,网易邮箱大师pc版
- 【Android开发】用户界面布局
- Win7系统安装Pycharm专业版
- 集成Euraka的SpringBoot工程禁止输出日志:ConfigClusterResolver : Resolving eureka endpoints via configuration的方法
- 百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
- 入门必看,快速判断mos管封装引脚的三个极和它的好坏