iphone - string to another view -


i've followed tutorial passing data between classes

did it, , working fine, need send string value (a date) view, (is simple know im noob this!),

  • so problem need send string (date), other view, string ok, dont seem (yet)how construct function,

i no warnings app breaks,

    - (void)calendarview:(klcalendarview *)calendarview tappedtile:(kltile *)atile{ nslog(@"date selected %@",[atile date]);  string1 = [[atile date] description]; dateis.text = string1; //label check string working  nslog(@"ahi va! %@", string1);  nsstring *cucux = dateis.text;  crotime *croco = [crotime alloc]; croco.string1 = cucux; [self.view addsubview:croco.view];  nslog(@"croco = %@", cucux);   } 

console message

   terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[crotime setstring1:]: unrecognized selector sent instance 0x5e2e1e0' 

thanks lot!!

setstring1 setter method calls when set property value.so error looks make property string1 in class crotime did not synthesize it.

this type of condition occur in case. ensure when make property synthesize in .m file.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -