Google推出3D绘图功能

2012年4月9日 没有评论

发表者:Adi Avidor, Google工程师、数学爱好者
转载自:Google Inside Search
几个月前,我们在搜索中加入了一项绘图功能,用来帮助学生和数学爱好者更容易地绘制函数图像。除了进行一些简单的计算如分摊账单,以及绘制较复杂的函数图像以外,很多用户在搜索框中实现了独特有趣的绘图功能。现在,你可以通过“绘图计算器”进行更多的尝试,甚至包括3D绘图。

用户只需在Google搜索框中键入任何含有两个变量的实变函数 ,便可以看到动态展示的互动三维立体曲线图。通过点击图片,用户便可对图片进行旋转,满足多角度观察的需求。不仅如此,用户还可以通过对菜单栏、公式以及界面右下角的显示标尺进行操作,以调整出最为合适的显示比例。对于正在学习高等微积分的学生来说,将两个变量的实变函数以三维立体图像的形式展示出来,会帮助他们直观地了解函数。

 

这一功能的实现是基于WebGL的技术, 这也是该项技术首次运用于Google搜索中。WebGL作为一项新的网页技术,可以在浏览器中实现效果逼真的3D图画,且无需安装任何软件。目前只有部分新型网络浏览器能支持此技术,例如Chome和Firefox。
此功能已在全球范围内推广,世界各地的数百万学生都可以在搜索结果中探索数学复合函数,并进行互动。我们期待看到您绘制出更多有趣的函数图像!

 

分类: WEB开发 标签:

Spring–quartz中cronExpression配置说明

2012年2月16日 没有评论

字段 允许值 允许的特殊字符
秒 0-59 , – * /
分 0-59 , – * /
小时 0-23 , – * /
日期 1-31 , – * ? / L W C
月份 1-12 或者 JAN-DEC , – * /
星期 1-7 或者 SUN-SAT , – * ? / L C #
年(可选) 留空, 1970-2099 , – * /

The ‘*’ character is used to specify all values. For example, “*” in the minute field means “every minute”.
“*”字符被用来指定所有的值。如:”*“在分钟的字段域里表示“每分钟”。
The ‘?’ character is allowed for the day-of-month and day-of-week fields. It is used to specify ‘no specific value’. This is useful when you need to specify something in one of the two fileds, but not the other. See the examples below for clarification.
“?”字符只在日期域和星期域中使用。它被用来指定“非明确的值”。当你需要通过在这两个域中的一个来指定一些东西的时候,它是有用的。看下面的例子你就会明白。
月份中的日期和星期中的日期这两个元素时互斥的一起应该通过设置一个问号(?)来表明不想设置那个字段

The ‘-’ character is used to specify ranges For example “10-12″ in the hour field means “the hours 10, 11 and 12″.
“-”字符被用来指定一个范围。如:“10-12”在小时域意味着“10点、11点、12点”。

The ‘,’ character is used to specify additional values. For example “MON,WED,FRI” in the day-of-week field means “the days Monday, Wednesday, and Friday”.
“,”字符被用来指定另外的值。如:“MON,WED,FRI”在星期域里表示”星期一、星期三、星期五”.

The ‘/’ character is used to specify increments. For example “0/15″ in the seconds field means “the seconds 0, 15, 30, and 45″. And “5/15″ in the seconds field means “the seconds 5, 20, 35, and 50″. Specifying ‘*’ before the ‘/’ is equivalent to specifying 0 is the value to start with. Essentially, for each field in the expression, there is a set of numbers that can be turned on or off. For seconds and minutes, the numbers range from 0 to 59. For hours 0 to 23, for days of the month 0 to 31, and for months 1 to 12. The “/” character simply helps you turn on every “nth” value in the given set. Thus “7/6″ in the month field only turns on month “7″, it does NOT mean every 6th month, please note that subtlety.

The ‘L’ character is allowed for the day-of-month and day-of-week fields. This character is short-hand for “last”, but it has different meaning in each of the two fields. For example, the value “L” in the day-of-month field means “the last day of the month” – day 31 for January, day 28 for February on non-leap years. If used in the day-of-week field by itself, it simply means “7″ or “SAT”. But if used in the day-of-week field after another value, it means “the last xxx day of the month” – for example “6L” means “the last friday of the month”. When using the ‘L’ option, it is important not to specify lists, or ranges of values, as you’ll get confusing results.

L是‘last’的省略写法可以表示day-of-month和day-of-week域,但在两个字段中的意思不同,例如day-of-month域中表示一个月的最后一天,
如果在day-of-week域表示‘7’或者‘SAT’,如果在day-of-week域中前面加上数字,它表示一个月的最后几天,例如‘6L’就表示一个月的最后一个
星期五,

The ‘W’ character is allowed for the day-of-month field. This character is used to specify the weekday (Monday-Friday) nearest the given day. As an example, if you were to specify “15W” as the value for the day-of-month field, the meaning is: “the nearest weekday to the 15th of the month”. So if the 15th is a Saturday, the trigger will fire on Friday the 14th. If the 15th is a Sunday, the trigger will fire on Monday the 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 15th. However if you specify “1W” as the value for day-of-month, and the 1st is a Saturday, the trigger will fire on Monday the 3rd, as it will not ‘jump’ over the boundary of a month’s days. The ‘W’ character can only be specified when the day-of-month is a single day, not a range or list of days
.
The ‘L’ and ‘W’ characters can also be combined for the day-of-month expression to yield ‘LW’, which translates to “last weekday of the month”.

The ‘#’ character is allowed for the day-of-week field. This character is used to specify “the nth” XXX day of the month. For example, the value of “6#3″ in the day-of-week field means the third Friday of the month (day 6 = Friday and “#3″ = the 3rd one in the month). Other examples: “2#1″ = the first Monday of the month and “4#5″ = the fifth Wednesday of the month. Note that if you specify “#5″ and there is not 5 of the given day-of-week in the month, then no firing will occur that month.

The ‘C’ character is allowed for the day-of-month and day-of-week fields. This character is short-hand for “calendar”. This means values are calculated against the associated calendar, if any. If no calendar is associated, then it is equivalent to having an all-inclusive calendar. A value of “5C” in the day-of-month field means “the first day included by the calendar on or after the 5th”. A value of “1C” in the day-of-week field means “the first day included by the calendar on or after sunday”.
关于cronExpression的介绍:

字段 允许值 允许的特殊字符
秒 0-59 , – * /
分 0-59 , – * /
小时 0-23 , – * /
日期 1-31 , – * ? / L W C
月份 1-12 或者 JAN-DEC , – * /
星期 1-7 或者 SUN-SAT , – * ? / L C #
年(可选) 留空, 1970-2099 , – * /
表达式意义
“0 0 12 * * ?” 每天中午12点触发
“0 15 10 ? * *” 每天上午10:15触发
“0 15 10 * * ?” 每天上午10:15触发
“0 15 10 * * ? *” 每天上午10:15触发
“0 15 10 * * ? 2005″ 2005年的每天上午10:15触发
“0 * 14 * * ?” 在每天下午2点到下午2:59期间的每1分钟触发
“0 0/5 14 * * ?” 在每天下午2点到下午2:55期间的每5分钟触发
“0 0/5 14,18 * * ?” 在每天下午2点到2:55期间和下午6点到6:55期间的每5分钟触发
“0 0-5 14 * * ?” 在每天下午2点到下午2:05期间的每1分钟触发
“0 10,44 14 ? 3 WED” 每年三月的星期三的下午2:10和2:44触发
“0 15 10 ? * MON-FRI” 周一至周五的上午10:15触发
“0 15 10 15 * ?” 每月15日上午10:15触发
“0 15 10 L * ?” 每月最后一日的上午10:15触发
“0 15 10 ? * 6L” 每月的最后一个星期五上午10:15触发
“0 15 10 ? * 6L 2002-2005″ 2002年至2005年的每月的最后一个星期五上午10:15触发
“0 15 10 ? * 6#3″ 每月的第三个星期五上午10:15触发
每天早上6点
0 6 * * *
每两个小时
0 */2 * * *
晚上11点到早上8点之间每两个小时,早上八点
0 23-7/2,8 * * *
每个月的4号和每个礼拜的礼拜一到礼拜三的早上11点
0 11 4 * 1-3
1月1日早上4点
0 4 1 1 *

quartz的高级特性不仅如此
1 数据库存储
2 集群支持
3 数据库持久化任务,trigger
4 trigger 的停止,运行
5 任务的任意添加
6 比corntrigger 更详尽的任务安排
7 线程的内部数据交换

分类: WEB开发 标签:

引起Iphone应用被App Store拒绝的原因

2012年2月15日 没有评论

Vibration. It is not permitted to use continuous vibration in your apps – short bursts as warnings is all that is allowed. Don’t bother trying to set up a timer to keep the vibration going, it will cause your app to be rejected.

Linking to private frameworks. This is obvious, but somehow in playing around with stuff we had linked to the MoviePlayer.framework. That’s a no-no, and cost us about ten days while we unlinked that framework, recompiled, and then resubmitted.

Improper handling of editing in tableview cells. Also obvious, but be aware that if you enable table cell editing, you’ll have to manually specify which cells should respond to editing controls and which should not. We had some random prefs cells in one of our early apps that were able to be swiped to bring up a ‘delete’ badge. Of course it didn’t do anything, but Apple justly considered this poor design and rejected our app.

Icons. Make sure the 57 pixel icon is identical to the 512 pixel version. Also, use a different icon if you are creating ‘lite’ and ‘pro’ versions of your app (i.e., free and paid). Using the same icon for both sends your app straight to … you guessed it … the bin.

Copying existing functionality. This one is much more subtle and insidious, and has probably affected the great percentage of developers. In addition to the widely publicized Podcaster debacle, reports from user comments indicate that Apple is casting a wide net when looking for duplicated functionality. Mini web browsers, or apps that essentially show web pages, seem particularly vulnerable, even if they add new and/or useful functionality. Stay away from email clients as well.

Using appropriate keyboard type. If your app asks for a phone number or other numeral-only input and you present a keyboard that also includes the possibility of entering standard alpha-numeric input … yep. (Thanks Jeremy1026)

Version numbers. If your app is currently at version 0.99 or below, you’d better consider giving it a promotion as Apple seems to prefer 1.0 and above. One of ours was recently rejected for being .016, with a message suggesting that our version number wasn’t even numeric. When we resubmitted the same app from scratch as version 1.0, it went through.

Network Reachability. If your app requires any type of network access you need to make sure it works when that access isn’t available. If it doesn’t it will be rejected. Apple provides sample code to test this which you can use as-is in most cases:http://developer.apple.com/library/ios/samplecode/Reachability/index.html

 

//=========================================================

振动。它是不允许的,在你的应用程序中使用连续振动 – 短时间作为警告是所有被允许的。不要理会试图建立一个计时器,以保持振动,它会导致您的应用程序被拒绝。

链接到私人框架。这是显而易见的,但不知何故在玩玩泥巴,我们已链接到MoviePlayer.framework。这是一个没有没有,和成本我们十天左右,而我们无关联的框架,重新编译,然后重新提交。

编辑处理不当tableview细胞。也是显而易见的,但要注意,如果启用表格单元格编辑,你必须手动指定哪些细胞应该响应编辑控件不应。我们已经在我们早期的应用程序,能够刷卡带来了一个“删除”徽章之一一些随机Prefs的细胞。当然,它没有做任何事情,但苹果公正地考虑这个可怜的设计,并拒绝了我们的的应用程序。

图标。确保57像素的图标是相同的512像素版本。此外,使用不同的图标,如果你正在创建“LITE”和“亲”你的应用程序的版本(即,免费和付费)。使用两个相同的图标,直接发送您的应用程序… …你猜对了… …完事。

复制现有的功能。这一个是更加微妙和阴险,并有可能影响开发商的很大比例。除了广泛宣传播客崩溃,从用户的意见的报告表明,苹果是铸造一个大网时复制功能。小型的Web浏览器,或应用程序,基本上显示网页,显得尤为脆弱,即使他们添加的新的和/或有用的功能。从电子邮件客户端以及。

使用适当的键盘类型。如果您的应用程序要求一个电话号码或其他数字,只有输入和你目前的键盘还包括进入标准的字母数字输入… YEP的可能性。 (谢谢Jeremy1026)

版本号。如果您的应用程序目前的版本为0.99或以下,你最好考虑给它一个推广苹果似乎更喜欢1.0及以上。我们最近拒绝为0.016,这表明我们的版本号,甚至没有数字的消息。当我们重新提交相同的应用程序1.0版从头的,它通过了。

网络可达性。如果您的应用程序需要任何类型的网络访问,您需要确保它的工作原理,访问不可用时。如果它不将被拒绝。苹果公司提供的示例代码来测试,您可以使用在大多数情况下是:
http://developer.apple.com/library/ios/samplecode/Reachability/index.html

www.J2meGame.com精心收集。

分类: iOS 标签:

apple.com 邮箱列表

2012年2月15日 没有评论

AppReview@apple.com
-应用在提交后(处于“审核中”),应用和应用内购的状态
-状态更新通知——与开发者遭拒和影响审核时间相关的信息
-应用遭拒通知咨询-快速审核请求
——————————————————————————————————-
iTSPayments@apple.com
- 支付状态查询
- 与苹果向开发者支付费用相关的问题
- 咨询财务报表
——————————————————————————————————-
AppStoreNotices@apple.com
-App Store内应用侵权问题,比如我们可以投诉“摩根书院”的关键字侵权
——————————————————————————————————-
DevPrograms@apple.com
-iDP或ADC查询;
-程序信息、收益、账户信息;
-修改邮箱地址、公司联系地址、团队代理人(代理人才有权生成发布证书)
-ADC产品、硬件等退费
-ADC网站查询:合作伙请求
——————————————————————————————————-
iDP-DTS@apple.com
-代码级别的提问
-API使用-代码崩溃/如何使用和查看Crash logs
-X-code使用问题, 证书问题
-修改代码可能会引发iTC上传错误或应用遭拒的情况
注意,
区别于上边这个地址,
99$的iDP每年有2次技术支持的机会,申请地址如下:
https://developer.apple.com/membercenter/index.action#techSupport
——————————————————————————————————-
iTunesConnect@apple.com
-iTC遇到的任何错误
-应用/应用内购买设置和管理
-应用在商店里/用户评论投诉等相关的事宜
-推广码查询
-编辑应用信息(名称、评分、关键词、定价、本地化等)
-iTC 用户以及应用内购买测试用户设置
-关键词/商店搜索查询
-iTC登陆事宜
-崩溃日志
-对Contact Us的疑问等
-iAD激活和获取iAd模板
——————————————————————————————————-
iTSBanking@apple.com
-更新银行账户信息
-与银行账户信息相关的事宜
-协助填写银行信息表格
-所有的开发者可通过iTC Contact Us 模块来修改银行账户信息,将表格发至这个邮箱
——————————————————————————————————-
iTSTax@apple.com
- 与收入和销售税有关的问题-协助填写报税表格
-处理报税表格
——————————————————————————————————-
iTunesAppReporting@apple.com
-销售/销售趋势报告理解的问题
-报告丢失问题
–销售/销售趋势报告与财务报告之差异

 

http://www.cocoachina.com/bbs/read.php?tid=92213

分类: iOS 标签:

Objective-C内存管理教程和原理剖析

2011年10月31日 19 条评论

前言
初学objectice-C的朋友都有一个困惑,总觉得对objective-C的内存管理机制琢磨不透,程序经常内存泄漏或莫名其妙的崩溃。我在这里总结了自己对objective-C内存管理机制的研究成果和经验,写了这么一个由浅入深的教程。希望对大家有所帮助,也欢迎大家一起探讨。

此文涉及的内存管理是针对于继承于NSObject的Class。

阅读全文…

分类: iOS 标签:

获取iphone目录下所有图片

2011年10月20日 没有评论

NSArray *pngs = [[NSBundle mainBundle] pathsForResourcesOfType:@”png” inDirectory:nil];
for (id png in pngs)
{
NSString *name = [png lastPathComponent];
if([name rangeOfString:@"page_"].location!=NSNotFound)
{
UIImage *image = [UIImage imageNamed:[png lastPathComponent]];
}
}

分类: iOS 标签:

iphone开发资源汇总

2011年10月20日 没有评论
如何用Facebook graphic api上传视频: http://developers.facebook.com/blog/post/532/
Keychain保存数据封装: https://github.com/carlbrown/PDKeychainBindingsController
对焦功能的实现: http://www.clingmarks.com/?p=612
自定义圆角Switch按件: https://github.com/domesticcatsoftware/DCRoundSwitch
弹出窗口For iphone and ipad: https://github.com/chrismiles/CMPopTipView
KVO详解: http://nachbaur.com/blog/back-to-basics-using-kvo
图片浏览: https://github.com/bdewey/Pholio
Dropbox实例: https://github.com/bdewey/dropvault
当地天气预报实例: https://github.com/aspitz/WxHere
可伸缩的toolBar实例: https://github.com/aspitz/ToolDrawer
app资源保护相关: http://aptogo.co.uk/2010/07/protecting-resources/
cocos2d中也可用UIScrollView,UITableView,UIGestureRecognizers https://github.com/jerrodputman/CCKithttp://www.tinytimgames.com/2011/08/05/introducing-cckit/
UITableView两级树型结构: http://www.codeproject.com/KB/iPhone/collapsabletableview.aspx
iOS文档导入导出: http://mobiforge.com/developing/story/importing-exporting-documents-ios
CoreAnimation Demo: https://github.com/bobmccune/Core-Animation-Demos
CoreAnimation Dev: Part 1 – Frame By Frame Sprites With Core AnimationPart 2 – Space Time

Part 3 – Scrolling Hell

Part 4 – Parallax Scrolling

iOS jabber聊天应用开发:客户端开发 http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-interface-setup/http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-custom-chat-view-and-emoticons/
iOS jabber聊天应用开发:服务器搭建 http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/
iOS快速入门: http://www.jonathanhui.com/ios
objc学习: http://www.jonathanhui.com/objective-chttps://github.com/carlbrown/PDKeychainBindingsController

https://github.com/ldandersen/scifihifi-iphone

KeyChain封装,安全存数据: http://developer.apple.com/library/mac/#documentation/Security/Conceptual/keychainServConcepts/02concepts/concepts.htmlhttp://developer.apple.com/library/ios/#samplecode/GenericKeychain/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007797-Intro-DontLinkElementID_2
声音相关: http://purplelilgirl.tumblr.com/post/9377269385/making-that-talking-apphttp://dirac.dspdimension.com/Dirac3_Technology_Home_Page/Dirac3_Technology.html
弹珠游戏: http://www.crowsoft.com.ar/wordpress/?p=19
spring board类UI: https://github.com/rigoneri/myLauncher
MacOS&iOS upnp: http://code.google.com/p/upnpx
ios block learn: http://ios-blog.co.uk/iphone-development-tutorials/programming-with-blocks-an-overview/https://github.com/zwaldowski/BlocksKit
弹出框中输入用户名与密码: https://github.com/enormego/EGOTextFieldAlertView
jailbreak iphone发送sms: http://code.google.com/p/iphone-sms/
搜索itune里app的url scheme: https://github.com/Zwapp/schemes-scanner
横竖屏切换自动调整位置: https://github.com/michaeltyson/TPMultiLayoutViewController
键盘出现与消失view自动移动避免遮挡: https://github.com/michaeltyson/TPKeyboardAvoidinghttp://atastypixel.com/blog/a-drop-in-universal-solution-for-moving-text-fields-out-of-the-way-of-the-keyboard/
iOS类似firebug的web调试工具: http://phonegap.github.com/weinre/
一个UI开源库tapkulibrary,集成了calendar,coverflow https://github.com/devinross/tapkulibraryhttp://maniacdev.com/2010/09/tapku-an-amazing-open-source-ios-interface-library/
多列的TableView https://github.com/Xenofex/MultiColumnTableViewForiOS
mac的一个桌面程序,开源的 http://homepage.mac.com/nathan_day/pages/popup_dock.xml

PSTreeGraph for iPad

https://github.com/epreston/PSTreeGraph
文件预览like QLPreviewController https://github.com/rob-brown/RBFilePreviewer
Interface Builder中用自定义字体解决方案 https://github.com/0xced/FontReplacer
有shader的UILabe https://github.com/nicklockwood/FXLabel
GCD学习 http://blog.slaunchaman.com/2011/02/28/cocoa-touch-tutorial-using-grand-central-dispatch-for-asynchronous-table-view-cells/http://www.raywenderlich.com/4295/multithreading-and-grand-central-dispatch-on-ios-for-beginners-tutorial

https://github.com/SlaunchaMan/GCDExample

让UITableView中有search功能教程 http://www.edumobile.org/iphone/miscellaneous/how-to-search-option-enable-in-tableview-in-iphone/
iPad阅读器开发 http://mobile.tutsplus.com/tutorials/iphone/building-an-ipad-reader-for-war-of-the-worlds/http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-using-a-slider-to-scrub-a-pdf-reader/

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-adding-a-table-of-contents-to-an-ipad-reader/

ipad UI 24个免费资源 http://www.cocoachina.com/applenews/devnews/2011/0915/3237.html
TableView的扩展 https://github.com/OliverLetterer/UIExpandableTableView
Orge3D for iOS http://code.google.com/p/gamekit/http://www.tonybhimani.com/2011/07/09/ogre3d-sdk-1-7-3-for-apple-iphone-ios-howto/
文档比Three20更全的类Three20库 https://github.com/jverkoey/nimbus
iOS Boilerplate一个库集合,方便开发 http://iosboilerplate.com/https://github.com/gimenete/iOS-boilerplate
openCV for iOS http://code.google.com/p/edgy-camera-ios/https://github.com/BloodAxe/opencv-ios-template-project

https://github.com/BloodAxe/OpenCV-iOS-build-script

http://computer-vision-talks.com/2011/02/building-opencv-for-iphone-in-one-click/

http://computer-vision-talks.com/2011/01/using-opencv-in-objective-c-code/

http://computer-vision-talks.com/2011/08/a-complete-ios-opencv-sample-project/

PageCurl for iOS https://github.com/xissburg/XBPageCurlhttps://github.com/raweng/FlipView

https://github.com/Split82/HMGLTransitions

http://api.mutado.com/mobile/paperstack/

iOS PDF实例 http://www.cocoachina.com/bbs/read.php?tid=75173https://github.com/vfr/Reader
Core Animation http://nachbaur.com/blog/core-animation-part-1http://nachbaur.com/blog/core-animation-part-2

http://nachbaur.com/blog/core-animation-part-3

http://nachbaur.com/blog/core-animation-part-4

Core Data注意的地方 http://nachbaur.com/blog/smarter-core-datahttp://iphonedevelopment.blogspot.com/2009/09/core-data-migration-problems.html
GCD http://nachbaur.com/blog/using-gcd-and-blocks-effectivelyhttp://deusty.blogspot.com/2011/01/multi-core-ios-devices-are-coming-are.html
MKMapView zoom level http://troybrant.net/blog/2010/01/mkmapview-and-zoom-levels-a-visual-guide/http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/
HTML parser http://www.cocoanetics.com/2011/09/taming-html-parsing-with-libxml-1/https://github.com/topfunky/hpple

https://github.com/zootreeves/Objective-C-HMTL-Parser

openGLES http://www.ityran.com/portal.php
Charts绘制开源库 http://code.google.com/p/core-plot/https://github.com/ReetuRaj/MIMChart-Library   说明文档
apple 私有api文档 http://hexorcist.com/private_frameworks/html/main.html
类safari的切换页面库 https://github.com/100grams/HGPageScrollView
自定义Slider组件 https://github.com/buildmobile/iosrangeslideriOS Range Slider Part 1

iOS Range Slider Part 2

一些自定义组件: 自定义UIAlertView自定义BadgeView

自定义数字键盘

QR Encoder二维码识别 https://github.com/jverkoey/ObjQREncoder
xml解析库 https://github.com/ZaBlanc/RaptureXML
wapper map for iOS https://github.com/yinkou/OCMapView
iOS unitity https://github.com/ZaBlanc/iBoosthttps://github.com/escoz/QuickDialog/
socket http://code.google.com/p/cocoaasyncsocket/
custom camera view https://github.com/pmark/Helpful-iPhone-Utilitieshttp://www.codza.com/custom-uiimagepickercontroller-camera-view
本地天气demo http://www.cocoachina.com/bbs/read.php?tid-72558-fpage-3.html
浏览器飞行动画 http://www.cocoachina.com/downloads/video/2011/1002/3313.html
切换动画demo http://www.cocoachina.com/bbs/read.php?tid-76431-page-1.html
Automatic Reference Counting http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html
voip for ios development http://trac.pjsip.org/repos/wiki/Getting-Started/iPhonehttp://www.piemontewireless.net/PJSip155_and_iPhoneSDK312

http://code.google.com/p/siphon/

图像处理 http://www.cocoachina.com/downloads/code/2011/1009/3335.html
脚本自动生成push notification所需证书 https://github.com/jprichardson/GeneratePushCerts
自定义ActivityIndicator https://github.com/hezi/HZActivityIndicatorView
开源库for ios boost for iphoneffmpeg for iphone

opencore amr for iphone

iOS网络相关 bonjourASIHttpRequest

CocoasyncSocket

分类: iOS 标签:

QRals:简单又实用的二维码制作工具

2011年9月22日 没有评论

QRals是一是一款极其简单的二维码制作工具,你几乎第一眼就能看懂怎么操作了,整个网站就就只有一个页面,网站中没有其它页面可以点击,期间你执行任何操作也不会跳转到其他的页面,所有的操作所有的功能都在第一个页面中即可完成。

阅读全文…

分类: 其他 标签:

阳历转换成阴历的源代码

2011年9月20日 1 条评论

-(NSString *)LunarForSolar:(NSDate *)solarDate

{

//天干名称

NSArray *cTianGan = [NSArrayarrayWithObjects:@"甲",@"乙",@"丙",@"丁",@"戊",@"己",@"庚",@"辛",@"壬",@"癸", nil];

 

//地支名称

NSArray *cDiZhi = [NSArrayarrayWithObjects:@"子",@"丑",@"寅",@"卯",@"辰",@"巳",@"午",@"未",@"申",@"酉",@"戌",@"亥",nil];

 

//属相名称

NSArray *cShuXiang = [NSArrayarrayWithObjects:@"鼠",@"牛",@"虎",@"兔",@"龙",@"蛇",@"马",@"羊",@"猴",@"鸡",@"狗",@"猪",nil];

阅读全文…

分类: iOS 标签:

ios设置时区转换

2011年9月20日 没有评论

有的时候为了在系统中统一时间,需要在服务器和客户端统一交换的时间时区,比如都用GMT。
iPhone上转换的代码如下:

NSDate *now = [NSDate date];
NSLog(@”%@”,[now description]);
NSTimeZone *defaultTimeZone = [NSTimeZone defaultTimeZone];
NSTimeZone *tzGMT = [NSTimeZone timeZoneWithName:@"GMT"];
[NSTimeZone setDefaultTimeZone:tzGMT];
NSLog(@”%@”,[now description]); //已经是 GMT表示了
[NSTimeZone setDefaultTimeZone:defaultTimeZone]; // 设置会用户默认的

或者:

[NSTimeZone setDefaultTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"CMT"]];

分类: iOS 标签:

无觅相关文章插件,快速提升流量