Skip to content

fenjuly/oh-my-category

 
 

Repository files navigation

  • feel free to use, all things wrote by me all rights unreserved
  • some code was copy from others, please notify the LICENSE

USEAGE

pod 'oh-my-category', :git => 'https://github.com/RoCry/oh-my-category.git'

what can these thing do

1.convert between lunar date(阴历) and solar date(阳历)

    NSDate *date = [NSDate getDateWithDateString:@"2000-07-07 00:14:35"   
                                    formatString:@"yyyy-MM-dd HH:mm:ss"];
                                    
    NSLog(@"your input date = %@",date);
    NSLog(@"input lunar date = %@",[date lunarForSolar]);
    
    NSLog(@"your next birthday by lunar date and display by solar date = %@",[date nextLunarBirthDateWithSolarDate]);
    NSLog(@"your next birthday by lunar date and display by lunar date = %@",[[date nextLunarBirthDateWithSolarDate]lunarForSolar]);

2.shake the view like when u input a wrong password on mac login window

    [self.view shake];

About

some useful category i wrote for my self or copy from others

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published