随笔分类 -  Mac/IPhone

摘要:epub 电子书软件代码销售本套代码用来读取epub 格式电子书。主要面向:有一定开发能力的人员,和有一定制作水平的朋友们。用途:自己开发学习,钻研,出appstore 应用,卖钱,加广告赚钱等。(如果你想出些epub的书,自己找资源打包上传,我想这是一笔不错的投资,长期利益,具体不多说了),发布阅读器,自己演化功能等。好处:方便快捷,epub 格式读取浏览,只要epub格式符合行业标准的,都能读... 阅读全文
posted @ 2010-11-26 14:03 AlexLiu 阅读(1830) 评论(4) 推荐(1)
摘要:本文并不介绍如实去实现a star 算法,也不去介绍什么是a star 算法。如果这方面不太了解了。去文章的末尾两个链接可以先补习一下。本文侧重于在游戏中实际应用。为什么要使用a star 算法:游戏中,我们常常会遇到一些任务或者是怪物的路径移动问题,尤其是有原本的地图的情况下。比如,任务从A走到B,如果直接过去,中间是有条河的,肯定不行。如果绕过去,两侧没有河,一侧是山,一侧是桥,山不能走,挡路... 阅读全文
posted @ 2010-10-25 14:17 AlexLiu 阅读(2065) 评论(0) 推荐(0)
摘要:总的来说,iphone 上可用的解析XML的方式大概有2种类型的。1.Tree-based API:这种API的处理方式是将XML的结构看成是树,然后把树的各部分看成一个对象来处理,这就是我们说的DOM (Document Object Model)方式。在iPhone的SDK里包含了一个libxml2的框架(Framework)就能进行DOM解析方式。Google的GDataXML也是基于lib... 阅读全文
posted @ 2010-10-25 12:48 AlexLiu 阅读(3730) 评论(0) 推荐(0)
摘要:好吧。我承认,最近实在是太懒了。也不是很懒吧,就是忙的顾不过来了,好久没更新了。还好,最近稍微好一点,打算总结一下最近的生活,希望能在接下来的半个月能够完成,当然,主要还是技术方面的。半个月之后,又要匆匆的去开始又一段新鲜的旅程了。订个目标,一天一篇吧。哈哈。 先列一下需要总结的东西好了:完成之后会加链接1。iEpuber, iphone 读取epub 格式电子书,阅读器(非技术非公益)2。Ast... 阅读全文
posted @ 2010-10-22 23:16 AlexLiu 阅读(1348) 评论(0) 推荐(0)
摘要:sqlite3_step 的时候,返回19,也就是sqlite预定义的一个返回结果,Abort due to constraint violation根据本人的经验研究,发现这个错误大多是由于在sqlite数据库创建的时候,表在创建的时候,加了某些约束,比如某个地方使用的是not null,或者PK使用的不是Integer而是Text类型。尝试检查这几个地方,应该就能解决真正的问题所在了。that... 阅读全文
posted @ 2010-07-04 19:59 AlexLiu 阅读(6441) 评论(0) 推荐(0)
摘要:图形界面自制粒子系统。真的很cool,很方便啊!有如下特点:Added radial and tangential accelerationiPhone and iPad supportPortrait & landscape orientationsOnline shared emittersSet your own particle textureExport toCocos 2DEx... 阅读全文
posted @ 2010-05-28 13:18 AlexLiu 阅读(2620) 评论(1) 推荐(1)
摘要:1.去RegexKitLite下载类库,解压出来会有一个例子包及2个文件,其实用到的就这2个文件,添加到工程中。2.工程中添加libicucore.dylib frameworks。3.现在所有的nsstring对象就可以调用RegexKitLite中的方法了。NSString *email = @”kkk@aaa.com”;[email isMatchedByRegex:... 阅读全文
posted @ 2010-05-21 23:23 AlexLiu 阅读(5712) 评论(0) 推荐(3)
摘要:// start by retrieving day, weekday, month and year components for yourDate NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSDateComponents *todayCompon... 阅读全文
posted @ 2010-05-21 16:39 AlexLiu 阅读(1565) 评论(0) 推荐(0)
摘要:#import "ProgrammaticAdViewController.h"#import "AdMobView.h"@implementation ProgrammaticAdViewController// The designated initializer. Override if you create the controller programmatically// and wan... 阅读全文
posted @ 2010-05-20 14:04 AlexLiu 阅读(1095) 评论(0) 推荐(1)
摘要:C) 在 tableView里面添加一个广告Create an AdMob delegate class; it can be as simple as a class that only implements -publisherId and -currentViewController.Add to your -tableView:cellForRowAtIndexPath: method (... 阅读全文
posted @ 2010-05-20 13:39 AlexLiu 阅读(2799) 评论(1) 推荐(1)
摘要:今天先不写了。累倒了。。原始人寻找失去的图腾的故事。 终于wait for review了。一个人搞音乐,策划,美工,程序。。。。搞不了啊。 阅读全文
posted @ 2010-05-16 00:14 AlexLiu 阅读(462) 评论(0) 推荐(0)
摘要:Tutorial: Detecting When A User Blows Into The MicbyDan GrigsbyonAugust 19, 2009·28 commentsIf, a couple of years back, you’d told me that people would expect to be able to shake their phon... 阅读全文
posted @ 2010-05-14 22:18 AlexLiu 阅读(2153) 评论(0) 推荐(1)
摘要:本文简单介绍下,如何不同的应用系统,对应于同一个应用程序来说,显示不同的名字。例如我的这个游戏,中文是水果连连看,那么中文系统下载来显示这个名字,修改了系统之后,显示可能显示的是FruitPuzzle,如果是日本语的话,显示‘フールツパゼル’。1. 将Info.plist本地化在Info.plist上右键点选Get Info,在General标签下,点击Make File ... 阅读全文
posted @ 2010-05-07 14:46 AlexLiu 阅读(5842) 评论(0) 推荐(0)
摘要:Learning cocos2d with samples Published by riq on March 3, 2010 in cocos2d. 9 Comments Arguably the most unknown cocos2d feature is the tests/samples.cocos2d contains almost a test for each feature th... 阅读全文
posted @ 2010-04-21 12:48 AlexLiu 阅读(1977) 评论(0) 推荐(0)
摘要:这是关于这个整形的定义。#define SQLITE_OK 0 /* Successful result *//* beginning-of-error-codes */#define SQLITE_ERROR 1 /* SQL error or missing database */#define SQLITE_INTERNAL 2 /* Internal logic error in S... 阅读全文
posted @ 2010-04-21 00:01 AlexLiu 阅读(14327) 评论(2) 推荐(1)
摘要: 阅读全文
posted @ 2010-04-09 14:49 AlexLiu 阅读(535) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2010-03-28 19:54 AlexLiu 阅读(724) 评论(0) 推荐(0)
摘要:上文提及,使用BSD socket进行数据发送。由于iPhone的SDK 里面提供的接口是CF Socket。简单DEMO下。一点基础补充:Socket接口是TCP/IP网络的API,Socket接口定义了许多函数或例程,程序员可以用它们来开发TCP/IP网络上的应用程序。要学Internet上的TCP/IP网络编程,必须理解Socket接口。Socket接口设计者最先是将接口放在Unix操作系统... 阅读全文
posted @ 2010-03-28 10:42 AlexLiu 阅读(4945) 评论(2) 推荐(0)
摘要:简单讲述基于BSD Socket + Http 协议。打造自己的浏览器。BSD Socket,不多说的,有机会详细参考网上有很多详细的讲解的。本例通过组一个Http报文,发送到指定的服务器中,得到相应的返回值。本人使用的是www.baidu.com,作为试验。1。下载fiddler,安装。这是一个抓报工具。安装结束,打开fiddler2,打开浏览器。把尽可能访问网络的东西关掉。晴空fiddler2... 阅读全文
posted @ 2010-03-27 20:47 AlexLiu 阅读(2894) 评论(0) 推荐(1)
摘要:无聊。周末写几个APP玩,终于在上午把网络折腾好了。5块钱的8139网卡让我时常能在MAC下上网。图标简陋啊。。。技术要点:1。组一个SOAP包。用NLURLConnection连接。2。找一个webservice。http://webservice.webxml.com.cn3。解析XML。4。显示,拖拽控件。随便贴点组SOAP包头,发送的Code[代码]XML解析,用的是NSXMLParse。... 阅读全文
posted @ 2010-03-27 14:54 AlexLiu 阅读(1816) 评论(3) 推荐(0)