xcode may not respond to warning -


The warning may not seem to get rid of the 'UIImage' @implmentation above the MyViewController '-scaleToSize' Can not answer. I have this @implementation:

  @implementation UIImage (scale) - @ (UIImage *) Scale tax size: (CGSize) size {UIGraphicsBeginImageContext (size); [Self drawInRect: CGRectMake (0, 0, size.width, size.height)]; UIImage * scaledImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); Return scale image; } @ And  

Then I have a MyViewController implementation

  @implementation Today's newsletter viewer synthesis data list; ...... - (UITableViewCell *) TableView: (UITableView *) Table View CellForAind Pound: (NSIndexPath *) Index Path {Fixed NSString * MainNewsCellIdentifier = @ "MenNewsCellactifier"; UITableViewCell * cell = [TablesViewDevUvitable cellwithaddififier: MenNewsCellactifier]; If (cell == blue) {cell = [[[UTTable power ALL] Init with style: UTTable Viscose Stylusbital Reass Identifier: MenNewsCellactifier] AutoEques]; } NSUINATOR Row = [IndexPath line]; NSDictionary * stream = (NSDictionary *) [Data List ObjectOutIndex: Line]; NSString * title = [Stream Value ForKey: @ "Title"]; If (! [Title iskind of class: [nssting class]]) {cell.textLabel.text = @ ""; } Else {cell.textLabel.text = title; } Cell.textLabel.numberOfLines = 2; Cell.textLabel.font = [UIFont systemFontOfSize: 10]; Cell.detailTextLabel.numberOfLines = 1; Cell.detailTextLabel.font = [UIFont systemFontOfSize: 8]; Cell.detailTextLabel.text = [Stream Value ForKey: @ "Created"]; NSString * i = [NSString stringWithFormat: @ "http://www.mywebsite.co.uk/images/%@", [Stream Manfouri: @ "image"]]; NSDTa * imageURL = [[NSDTA Alloc] Init with content of URL: [NSL URL URL Authorization: I]] ;; UIImage * newsImage = [[UIImage alloc] initWithData: imageURL]; UIImage * scaledImage = [News Image Scalotes: CGSizeMake (50.0f, 50.0f)]; // Alert is visible here Cell.imageView.image = scaledImage; [ImageURL release]; [News release]; Return cell; }  

Thanks for the advance time.

Frame

To avoid this warning, the compiler should declare your custom method declaration " Must see. Then you should set

@interface UIImage (scale) - (UIImage *) scale: (CGSize) size @end

somewhere - either In the file for the related header, or in the same implementation file if you do not want to access this method outside of the existing file.


Comments