errors regarding "TextField"

Discussion in 'iOS Programming' started by chipandtoast, Feb 13, 2010.

  1. chipandtoast macrumors member

    Joined:
    Nov 14, 2009
    Location:
    Wisconsin
    #1
    I was following a tutorial on the iphone app (sdk iq)
    and at the end of the view based tutorial I clicked build and run in xcode and xcode showed...



    #import "HelloWorldViewController.h"

    @implementation
    HelloWorldViewController
    @synthesize TextField, label; ! No declaration of property textfield found in interface
    - (void) clickaction: (id) sender{
    label.text = textField.text; !textfield undeclared
    //hide keyboard on button click.
    [TextField resignFirstResponder] ; !textfield undeclared
    }


    If anyone has advice please help. All the errors were in helloworldviewcontroller.m if that helps.
    (If someone needs screenshots to be able to help me could you inform me how to take screenshots and post them on this page?)
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  3. chipandtoast thread starter macrumors member

    Joined:
    Nov 14, 2009
    Location:
    Wisconsin
    #3
    Thanks that helped a little bit now I only have 2 errors I'm at

    code


    @implementation
    HelloWorldViewController
    @synthesize TextField, label; !No declaration of property 'TextField' found in interface

    - (void) clickaction: (id) sender{
    label.text =TextField.text; ! 'TextField undeclared'
    //hide keyboard on button click.
    [TextField resignFirstResponder] ;
    }
     
  4. chipandtoast thread starter macrumors member

    Joined:
    Nov 14, 2009
    Location:
    Wisconsin

Share This Page