3

アプリケーションで、カテゴリを宣言しました `

#import <Foundation/Foundation.h>


@interface UIImage (StackBlur) // Expected method body
- (UIImage*) stackBlur:(NSUInteger)inradius ;
-(UIImage*)mergeImage:(UIImage*)firstImage eggShape:(UIImage*)secondImage rect:(CGRect)rect;
-(UIImage*)maskImage:(UIImage*)firstImage ;
@end

it shows error at commented line. Please help. here is implementation code

#import "UIImage+StackBlur.h"


@implementation  UIImage (StackBlur)




- (UIImage*) stackBlur:(NSUInteger)inradius 
{


    return finalImage;
}
-(UIImage*)mergeImage:(UIImage*)firstImage eggShape:(UIImage*)secondImage rect:(CGRect)rect {
   return theImage;
}
- (UIImage*) maskImage:(UIImage *)image {

    return theImage;
}
@end

`

4

1 に答える 1

3

UIImageの一部なUIKitので、#import <UIKit/UIKit.h>ではなく<Foundation/Foundation.h>:

#import <UIKit/UIKit.h>

@interface UIImage (StackBlur)
- (UIImage*) stackBlur:(NSUInteger)inradius ;
-(UIImage*)mergeImage:(UIImage*)firstImage eggShape:(UIImage*)secondImage rect:(CGRect)rect;
-(UIImage*)maskImage:(UIImage*)firstImage ;
@end
于 2012-07-20T09:12:20.803 に答える