iOS
stonexing5
这个作者很懒,什么都没留下…
展开
-
iphone上实现的一个3D画廊的效果
用的第三方开源代码 openflow实现的开发环境xcode4.2 SDK是iOS5代码下载地址http://www.kuaipan.cn/index.php?ac=file&oid=9829758506369626原创 2011-12-18 18:08:38 · 2048 阅读 · 2 评论 -
iOS通过百度mp3接口解析mp3文件地址代码分享
已上传到金山快盘http://www.kuaipan.cn/index.php?ac=file&oid=9829758506369625可惜播放功能是跳转到safari播放的 有时间在搞吧原创 2011-12-15 02:15:43 · 2273 阅读 · 0 评论 -
ipa中提取图片资源 png处理方法
ipa本身是一个zip文件改后缀后解压缩就能看到应用内使用的资源文件其中png图片资源xcode打包的时候做了些手脚 具体怎么处理的这里不做解释下边提供一个python脚本from struct import *from zlib import *import statimport sysimport osdef getNormalizedPNG(filename):原创 2012-04-05 17:32:34 · 5558 阅读 · 7 评论 -
iphonewax下用lua代码addTarget_action_forControlEvents给UIButton添加事件程序crash解决办法
创建button代码的地方要初始化button的类型 如下: local play = UIButton:buttonWithType(UIButtonTypeCustom) play:setFrame(CGRect(p[1], p[2], size.width, size.height)) play:setBackgroundImage_forState(imgpl原创 2012-04-26 09:51:31 · 2437 阅读 · 0 评论 -
iphone软件点击评价按钮进入评论页面方法
NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d", 510277436/*程序id*/ ]; [[UIApplication shar转载 2012-04-19 20:02:31 · 996 阅读 · 0 评论 -
iphone上用lua做了个doodlejump的菜单界面
--[[南阳草庐软件科技有限公司 hi.baidu.com/xingyan126]]waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}}-- Well done! You are almost ready to run a lua app on your iPhone!---- Just run the a原创 2012-04-25 12:11:05 · 2566 阅读 · 0 评论 -
lua管理图片资源-很简单的代码
单实例管理图片加载防止重复加载使用导致内存问题imgDef = {}function getImageByName(name) if (imgDef[name] == nil) then imgDef[name] = UIImage:imageNamed(name) end return imgDef[name];end如果涉及图片是r原创 2012-05-01 21:44:46 · 6670 阅读 · 0 评论 -
ios多核心 处理代码
// 多核心加速处理函数// 在阻塞期间,创建和处理器核心数相同数量的线程来执行回调函数// 例如 双核 会执行下面的方法// pfun(0, 2)// pfun(1, 2)inlinevoid MultiCoreProcessing(void (^pfun)(int i_thread, int num_thread)){ NSUInteger processorCount转载 2012-03-08 21:42:47 · 891 阅读 · 0 评论