Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
日付の配列がありますが、それらの日付を iPhone アプリの UIDatePicker のデータソースとして割り当てることは可能ですか? もしそうなら、どうすればそれを行うことができますか? 事前にサンクス!
次のようなことを試すことができます:
NSString * str = [[NSString alloc]initWithFormat:@"%@",[yourDateArray objectAtIndex:0]]; yourDatePicker.date = [[NSDateFormatter alloc] init] dateFromString:str];
お役に立てれば。