Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

iphone - Deleting all objects from a section in a Core Data backed UITableView doesn't trigger the selection to delete? -


i'm having problem managing sections in core data backed uitableview, using nsfetchedresultscontroller.

my table view can have 2 sections, first static section , displayed conditionally. second section being populated fetched results controller. i'm using following determine how many sections display. if delete of fetched objects in second section, expect section deleted well.

- (nsinteger)numberofsectionsintableview:(uitableview *)atableview {  nsinteger numberofsections = 0;  if (self.locationenabled) numberofsections++;  if ([[[self.fetchedresultscontroller sections] lastobject] numberofobjects]) numberofsections++;  return numberofsections; } 

the problem approach datasource method informing table should displaying 1 section because there no fetched objects remaining, removing last object never triggered deletion of section through fetched results manager delegate methods.

how trigger section deletion avoid receiving uikit inconsistency errors?

edit: should point out have sectionnamekeypath set nil since results don't share in common section by.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -