iphone开发
zu12jing
这个作者很懒,什么都没留下…
展开
-
判读当前选中那个UITextField
-(BOOL) textFieldShouldBeginEditing:(UITextField *) textField{ if( [textField isEqualTo: myTextFiled] ) { //doing some thing }}原创 2010-08-05 16:08:00 · 970 阅读 · 0 评论 -
flashdevelop调用ios方法
flash开发工具用的是flashdevelop(由于flashdevelop还能直接打开flashbuilder工程,反过来就不知道了)一.创建工程创建一个ios的工程,这个网上很多资料我就不写了关键点:要打包到ios设备上主要要看默认的AIR_IOS_readme.txt文件说明,这样对打包ios工程设置讲的非常详细二.怎么使用ane(ane封装后面补上)ane:包括了所有原创 2012-03-08 09:34:13 · 3547 阅读 · 0 评论 -
推送要点
apple 推送的文章很多网站搜索一下都有下面就介绍下我碰到的情况Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的权利字符串" UserInfo=0x15a470 {NSLocalizedDescription=未找到应用程序的“aps-environment1.碰到这个问题果断的到苹果后台删原创 2012-01-12 13:33:11 · 1471 阅读 · 2 评论 -
nsoperationQueue的使用
1,operationQueue 里边应该可以同时添加多个operation吧?是的,本来operationQueue的目的就是多线程管理,那多线程,可不只是一个线程。而且我们可以设置这个队列每次被处理的“操作”数量 NSOperationQueue *aQ = [[NSOperationQueue alloc] init]; [aQ setMaxConcurrentO转载 2011-06-24 10:33:00 · 789 阅读 · 0 评论 -
根据文字长度拉升背景图片
- (UIView *)bubbleView:(NSString *)text from:(BOOL)fromSelf { // build single chat bubble cell with given text UIView *returnView = [[UIView alloc] initWithFrame:CGRectZero]; returnView.backgr原创 2011-06-23 10:00:00 · 1302 阅读 · 0 评论 -
iphone视频聊天代码实现
<br />视频聊天从摄像头中取得缓冲数据,转换成NSData,通过网络发送,接收端取得NSData后把NSData转换成图像,双方不停的收发数据,播放图像,就形成了视频聊天。废话不多说,直接上代码:<br />首先创建视频输入输出:<br />NSError *error = nil;<br /> <br /> // Setup the video input<br /> AVCaptureDevice *videoDevice = [self getFrontCamera];//[AV转载 2011-05-19 11:59:00 · 9852 阅读 · 8 评论 -
iphone知识点
NSLog(@"%s %d", __FUNCTION__, __LINE__); //显示当前位置的函数名和行号原创 2011-03-18 11:08:00 · 958 阅读 · 0 评论 -
svn遍历添加和删除命令
<br />1.查找并添加当前文件夹下所有.a文件<br />find ./ -name "*.a" | xargs svn add<br />2.查找并删除当前文件夹下所有.svn文件<br />find ./ -type d -name ".svn" | xargs svn -rf原创 2011-03-15 09:45:00 · 2086 阅读 · 0 评论 -
判断当前设备的类型 名
<br /><br /><br />1。添加头文件<br /><br />#import <sys/utsname.h><br />#import <sys/types.h><br />#import <sys/sysctl.h><br />2。 添加代码<br /> <br />struct utsname systemInfo;<br /> uname(&systemInfo);<br /> NSString *machineName = [NSString stringWithCStrin原创 2011-01-28 20:14:00 · 976 阅读 · 0 评论 -
在Cocoa中使用TagLib获取歌曲ID3信息
<br /><br /> <br />TagLib是KDE开源项目的一个很有用的C++函数库,可以用于读取各种格式的歌曲ID3信息,诸如歌名、歌手、专辑等信息。<br />1.5版的TagLib支持MacOS,我们可以在Cocoa中直接使用TagLib来获取MP3歌曲的ID3信息。上图就是使用TagLib获取的歌曲信息,没有使用iTunes。<br /> <br />TagLib的功能强大,用法很简单,只需要在工程中加入TagLib.framework,同时在需要使用TagLib的.h文件中加入如下引用:<转载 2011-01-27 19:29:00 · 1765 阅读 · 1 评论 -
iphone 的文件目录和简单介绍
<br />1、 【/Applications】 <br />常用软件的安装目录 <br />2. 【/private /var/ mobile/Media /iphone video Recorder】 <br />iphone video Recorder录像文件存放目录 <br />3、 【/private /var/ mobile/Media /DCIM】 <br />相机拍摄的照片文件存放目录 <br />4、 【/private/var/ mobile /Media/iTune转载 2011-01-07 15:51:00 · 1620 阅读 · 0 评论 -
UITableView 关键操作
一、添加UITableViewCell为自己设计的风格- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{//两个section cell id要不同if(indexPath.section == 0){NSString *CellIdentifier = [NSStringstringWithFormat:@"cell%d",indexPath.row]原创 2010-11-03 10:50:00 · 1946 阅读 · 0 评论 -
基于cocos2d 的地图制作 Tiled.tmx
<br />1.首先下载 tiled 软件 可以通过下面地址下载:http://sourceforge.net/projects/tiled/files/tiled-qt/0.5.1/tiled-qt-0.5.1.dmg/download<br />2.打开软件开始制作地图<br />1)需要一张地图元素图 <br />2)新建一个工程,在map->add tileset 将地图元素图导入到工程中,现在就可以用地图元素图制作地图了<br />3)通过软件可以添加对象层 (例如:用于标记精灵出现的位置)并且原创 2010-12-08 10:48:00 · 3815 阅读 · 0 评论 -
网络数据请求
NSString* url = [NSString stringWithFormat:@"%s?mt=1&qt=6045&mobilekey=%@", gURLHEADER.getData(), [[UIDevice currentDevice] uniqueIdentifier]]; NSURL *c_url = [NSURL URLWithString:url]; NSMutableURLRequest *postRequest = [[NSMutableURLRequest alloc] in原创 2010-10-09 18:22:00 · 756 阅读 · 0 评论 -
object-c 密码帐号加密 base64
<br />一.添加GTMBase64.h , GTMBase64.m和GTMDefines.h 到工程目录下(这个网站上找找都有) 下面链接个网址 呵呵<br />http://www.jguoer.com/blog/wp-content/uploads/2010/1/base64.zip<br />二.在自己的类中实现下面的方法 就可以实现加密和解密了<br />//加密<br />-(NSString *) encryptData:(NSString *) strData<br />{<br />转载 2010-09-03 17:47:00 · 2159 阅读 · 0 评论 -
链接调试爆:Could not find the container for the installed application
[错误描述]<br />命令行控制台显示错误信息:<br />Could not find the container for the installed application<br /><br />[解决办法]<br />方法一:<br />重新刷机 好了...-_-!!!<br />期待更好的解决办法~~~~~<br /><br />方法二:<br />多半是装破解软件的问题,<br />用91助手查看已经安装的程序~<br />同步刷新应用程序,删除需要安装的应用程序<br /><br /><br转载 2010-09-06 11:27:00 · 856 阅读 · 0 评论 -
iphone推送消息 实例
原文地址:http://mobiforge.com/developing/story/programming-apple-push-notification-services英语太烂就不翻译了....One of the key limitations of the iPhone is its constraint on running applications in the background. Because of this, applications cannot keep running in t转载 2010-09-02 16:49:00 · 9116 阅读 · 4 评论 -
在app里添加购买,并通过服务器端验证是否购买成功
一 有关如何在程序中加入In APP Purchase 的内容参考下面的连接http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008267-CH1-SW1二 我的程序具体步骤1 添加Storekit.Framework,编写自己的storeObseve转载 2010-09-13 12:12:00 · 5056 阅读 · 0 评论 -
IOS6.0 应用内直接下载程序 不需跳转AppStore
SKStoreProductViewController类是UIViewController的子类, 如果你对view controller比较熟悉的话,那SKStoreProductViewController使用起来也非常简单了。当你希望向用户展示App Store中产品时,你需要:1.实例化一个SKStoreProductViewController类2.设置它的delegate转载 2014-07-18 12:27:07 · 995 阅读 · 0 评论