开发者

How to get a date for a day in current week

i need to set alarm for monday开发者_开发百科 , Saturday ,friday etc... on every week repeatedly.


You can follow following link for your answer.

How to find what day of the week for any given date using Cocoa

Just need to do some stuff. It returns opposite of what you need so accordingly you can do some stuff to get what you required.

Hope it helps.


Take a look at the NSDate Class Reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜