ios - Incompatible pointer Type initializing 'NSString *' with an expression of type 'UITextField *' -


I currently have a problem with my app, however, when I am trying to push data on my PHP script I press the button, the whole app freeze here is my code.

The guestlist viewfinder.m file

  // // GuestlistViewControler.m // Club La Boom // // Created by Kevin Archambault on 2014-04-21. // Copyright (C) 2014 Club La Boom All Rights Reserved. // #import "GuestlistViewControler.H" @implementation GuestlistViewControler - (IBAction) addData: (ID) sender {NSString * name = self.NameText; NSString * invite = self.InviteText; NSString * Email = self.EmailText; NSString * phone = self.CellText; NSString * date = self.DateText; NSString * rawStr = [NSString stringWithFormat: @ "name =% @ & amp; invite =% @ & amp; email =% @ & amp; phone =% @ & date =% @", name, invitation, email, Phone, date]; NSDT * data = [raw STR data usage encoding: NSITF 8 string encoding]; NSURL * url = [NSURL URLWithString: @ "http://www.clublaboom.com/guestlist_iphone.php"]; NSMutableURL request * request = [NSMutableURL request request withURL: url]; [Set http system: @ "post"]; [Set htmlbb: data]; NSURLResponse * response; NSError * err; NSDT * responseData = [synchronous request to send NSUr connection: Response returning request: Response error: & amp; Err]; NSString * responseString = [NSString string withUTF8 string: [feedback byte]]; NSLog (@ "% @", response string); NSString * success = @ "success"; [Success Data Usage Encoding: NSUTF 8 String Encoding]; NSLog (@ "% lu", (unsigned long) responseString.length); NSLog (@ "% lu", success (unsigned long) length); [Self shotgun viewer unpowered: yes complete: zero]; // Cancel view}} @end   

guest viewer h files

  // // GuestlistViewControler.h // Club La Boom / Copyright // Copyright 2014 created by Kevin Arcamault on Copyright 2014. // # import & lt; Foundation / Foundation. H & gt; #import & lt; UIKit / UIKit.h & gt; #import & lt; Core Graphics / Core Graphics H & gt; @ Interface guestview view controller: UITableViewController {UITextField * _NameText; UITextField * _InviteText; UITextField * _EmailText; UITextField * _CellText; UITextField * _DateText; UIButton * _SubmitButton; } @ Property (strong, non-fixed) IBOutlet UITableViewController * GuestlistViewControler; @ Property (Nonomatic, reserved) IBOutlet UIT ext filed * Nameset; @protecti (nontomic, retten) IBotlicate utitisfield * inviting text; @protecti (nontomic, raten) iBotletlet UITDefined * email text; @protecti (non-monitored, reserved) IBOutlet UIIFFFIFFED * celltext; @protecti (nanatomic, raten) IBotllett UITDefined * Dettext; @protecti (nonmomic, intact) IBOutlet UIButton * SubmitButton;   

Thanks for helping

Change: < / P> NSString * name = self.NameText; NSString * invite = self.InviteText; NSString * Email = self.EmailText; NSString * phone = self.CellText; NSString * date = self.DateText; From

:

  NSString * name = self.NameText.text; NSString * invite = self.InviteText.text; NSString * Email = self.EmailText.text; NSString * phone = self.CellText.text; NSString * date = self.DateText.text;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -