core data - Problems accessing 1:N relationship in entity -


I have the institutions: bank, section, subdivision, set, question Problems reaching "NSSet subdivision" and "[UITableViewCell thesubsection]:" Unknown selector is sent from this code to CRSectionVC.m, which fills the table view cell

  - ( NSArray *) All questions {NSSortDescriptor * Partition = [NSSortDescriptor sortDescriptorWithKey: @ "Subdivision" ascending: Yes]; Return [_section2.thesubsection sortedArrayUsingDescriptors: @ [partition]];  

However, I can use the "NNSAT section" relationship in the bank entity using this code

  NSSortDescriptor * division2 = [NSSortDescriptor sortDescriptorWithKey: @ "Division" ascending: yes]; Return [self.detailItem2.sesection sortedArrayUsingDescriptors: @ [Partition 2]];  

_section2 to CRSubsectionVC.h @property (strong, nonatomic) section * section 2; Storyboard 1. CRMasterViewController which displays the 'category' attribute from the bank in a table view,

  bank.h square class section; @ Interface Bank: NSManagedObject @property (nonatomic, retain) NSString * Category; @prompoti (nanatomic, raten) nset * action; @ Dynamic bank @ amphilim bank @ bank @ Dynamic action; @end  
  1. When I tap on 'Category', I pass the SEBC and CRDetailViewController to the bank object. I use the following code:

    NSSortDescriptor * Partition 2 = [NSSortDescriptor sortDescriptorWithKey: @ "Partition" ascending: Yes]; From return [self.detailItem2.sesection sortedArrayUsingDescriptors: @ [Division2]];

To bring a section relationship (NSAS * action), 'division' specialty from the bank at the tableview

  section H square, bank, subdivision; @ Interface section: NSManagedObject @property (nonatomic, retain) NSString * partition; @protecti (nonetomic, raten) bank * bank; @protecti (nonatomic, titan) nsat * thresbasection; @end section. M @ installation section @ dynamic division; @dynamic bank; @ Dynamic theme; If I tap on 'section', I pass segue and stream object named CRSubsectionVC, named _section2 When I try to use NSSet * thesubsection, I'll try to get the 'Subdivision' attribute using the code.  

NSSortDescriptor * division = [NSSortDescriptor sortDescriptorWithKey: @ "subdivision" ascending: Yes]; Return [_section2.thesubsection sortedArrayUsingDescriptors: @ [Division]];

I get an error [UITableViewCell thesubsection]: Unknown selector sent for example. I do not understand why the automated accessory 'Action' works fine but 'not thesubsection'

  sub section section @ section section, set; @ Interface sub-section: nsmanned object @ property (nontomatic, rETAIN) nssting * sub division; @products (nonomatic, reten) section * section 2; @product (nanatomic, rETAIN) nset * set; @ And sub-clause M @ Implementation Sub-section @ Dynamic Subdivision; @ Dynamic section 2; @ Dynamic set; @end  

The problem is precisely the template that works with copying and core data and There is no issue to understand table views.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -