ios - Delete Rows (All-day,Repeat and URL) Permanetally From EKEventEditViewController -
i create event on calendar, used code provided apple sample code , use ekeventviewcontroller, work fine. want customise ekeventviewcontroller, , delete these rows -all-day,repeat , url when create new event view occurs.
http://stackoverflow.com/questions/14813240/how-to-customise-ekeventeditviewcontroller
in link customise ekeventeditviewcontroller when refresh view automatically these rows appearing. want permanently delete these rows. please me.
- (void)navigationcontroller:(uinavigationcontroller *)navigationcontroller willshowviewcontroller:(uiviewcontroller *)viewcontroller animated:(bool)animated { if ([viewcontroller iskindofclass:[uitableviewcontroller class]]) { uitableview *tableview = ((uitableviewcontroller *)viewcontroller).tableview; (nsinteger j = 0; j < [tableview numberofsections]; ++j) { (nsinteger = 0; < [tableview numberofrowsinsection:j]; ++i) { uitableviewcell *cell = [tableview cellforrowatindexpath:[nsindexpath indexpathforrow:i insection:j]]; nslog(@"cell => %@, row => %d, section => %d", cell.textlabel.text, i, j); if([cell.textlabel.text isequaltostring:@"alert"]) { [cell removefromsuperview]; } else if(j == 5) { // if url field [cell removefromsuperview]; } } } }
}
and if want add new row how can add.
you can't. not that, answer given other question won't work in later versions of ios. controllers ekeventeditviewcontroller
increasingly being implemented remote view controllers controlled separate process , cannot modified within app.
Comments
Post a Comment