ios - Getting: Property 'getFlower' not found on object of type 'ViewController *' -


I'm following "Sams teach myself iOS 6" and I have been able to troubleshoot this error without any success Have tried.

Here is my ViewController.h file:

  @ interface view controller: UIViewController @property (weak, non-fixed) IBOutlet UISegmentedControl * colorChoice; @protecti (weak, nonomatic) ibotlet UIWebView * FlowersView; @ Property (Weak, Non-Meticulous) IBotlet UIWebView * flowerDetailView; - (IBAction) toggleFlowerDetail: (ID) sender; - (IBAction) getFlower: (ID) sender; @end   

The error I'm getting is on this line, [self. Flower: zero]; , in the ViewController.m file: @ interface view controller (@ @ Expandement @ Exploration View Controller - ViewedDidload {{Super Viewedload]; self.flowerDetailView.hidden = Yes; [Self.getFlower: zero]; } - (zero) did risive memorianising [[super dysrhymmy warning]; // Any resource settlement which can be reproduced. } - (IBAction) toggleFlowerDetail: (ID) Sender {self.flowerDetailView.hidden =! [Sender isOn]; } - (IBAction) getFlower: (ID) sender {ns URL * imageURL; NSDrawl * extension URL; NSString * imageURLString; NSString * detailURLString; NSString * color; int sessionID; Color = [self. Caller Chose Title for SegmentItindex: Self-Crowl. Selected Segment Index]; SessionID = Random ()% 50000; ImageURLString = [[NSString alloc] initWithFormat: @ "http://www.floraphotographs.com/showrandomios.php?color=%@&session=%d", color, session id]; DetailURLString = [[NSString alloc] initWithFormat: @ "http://floraphotographs.com/detailios.php?session=%d", session ID]; ImageURL = [[NS URL light] initWithString: imageURLString]; DetailURL = [[NSRL Alok] initWithString: detailURLString]; [self.flowerView loadRequest: [url url with NSURLRequest request: imageURL]]; [Self. Load the flower deltive load: [NSRR request request with url: detailURL]]; Self.flowerDetailView.backgroundColor = [UIColor clear collar]; } @end

The method, GetFlower, has already been declared in the header file, so why can not I use it in the implementation file?

this:

  [self.getFlower: zero];   

should be:

  [get self: zero];   

This is a way, property is not.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -