iOS根据月日计算星座
-
(NSString *)getConstellationWithMonth:(int)m_ day:(int)d_
{
NSString * astroString = @"摩羯座水瓶座双鱼座白羊座金牛座双子座巨蟹座狮子座处女座天秤座天蝎座射手座摩羯座";
NSString * astroFormat = @"102123444543";
NSString * result;result = [NSString stringWithFormat:@"%@",[astroString substringWithRange:NSMakeRange(m_3-(d_ < [[astroFormat substringWithRange:NSMakeRange((m_-1), 1)] intValue] - (-19))3, 3)]];
return result;
}