以下のサイトを参考に
[ui_picker setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"GMT"]];
のようにすると日付の誤差はなくなりましたが、時刻の誤差はそのままでした。
http://pukapuka-ahirusan.blogspot.com/2010/11/uidatepicker.html
どうやら、UIDatePicke…
//セルが選択された際に呼び出される – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //選択されたセルを取得 UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; //セルにチェックが付いている場合はチェックを外し、付いていない場合はチェックを付ける if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { cell.accessoryType = UITableViewCellAccessoryNone; } else { cell.accessoryType = UITableViewCellAccessoryCheckmark; } }
graffiti on the web
この投稿へのコメント
コメントはまだありません。