xcode - How to Fix Error: Incompatible Pointer Types Assigning to -
let me preface saying i'm new might not best @ asking questions here goes. getting error when hit build in xcode code.
-(ibaction)unwindtorecipedetails:(uistoryboardsegue*)segue { changerecipedetailviewcontroller *source = [segue sourceviewcontroller]; recipelabel = source.textview; // error: incompatible pointer types assigning uilabel uitextfield }
here's i'm trying do. based code off of snippet works...
-(ibaction)unwindtorecipebook:(uistoryboardsegue *)segue; { addrecipeviewcontroller *source = [segue sourceviewcontroller]; recipeitem *item = source.recipeitem; }
this supposed make addrecipeviewcontroller
data source initial recipebook
page when user navigates backward. i'm trying implement same thing when user navigates backward changerecipe
page recipedetails
page.
apparently mixed 2 different types of code in error, uilabel , uitextfield. incompatible change either 1 in order make work. little different basing code off of in don't want transfer same text, want change format well.
again, i'm new @ if needs more information i'll gladly post it. thanks.
update 1: palpatim: thank you. solution worked. clarify, in order transfer text have put .text after initial source. combines 2 unlike objects , transfers text text. correct? i'm new @ coding , trying learn.
philip mills: meant wanted change format of text when transfer editable textview static label.
thanks help.
Comments
Post a Comment