Method Definition for “…:” Not Found

后端 未结 1 1846
忘掉有多难
忘掉有多难 2021-01-28 17:24

My app keeps coming up with a \"Semantic Error\" and keeps freezing/crashing.Everything seems to be stringed together fine and it launches without problem. TextFields work fine

1条回答
  •  后悔当初
    2021-01-28 17:54

    In .h

    - (IBAction)textfieldReturn:(id)sender;
    

    In .m

    - (IBAction)textFieldReturn:(id)sender
    

    Be careful about letter cases. field and Field.

    And an IBAction without (id)sender doesn't sound good.

    0 讨论(0)
提交回复
热议问题