私は iOS 開発を始めたばかりで、警告のために少し立ち往生しています。ビルドは成功しましたが、この警告が気になります。他のいくつかの回答を確認しましたが、何が問題なのかわかりませんでした。
Waring - 不完全な実装
Complexnumbers.h
#import <Foundation/Foundation.h>
@interface ComplexNumbers : NSObject
-(void) setReal: (double)a;
-(void) setImaginary: (double)b;
-(void) print; // display as a + bi
-(double) real;
-(double) imaginary;
@end
Complexnumbers.m
#import "ComplexNumbers.h"
@implementation ComplexNumbers // Incomplete implementation
{
double real;
double imaginary;
}
-(void) print
{
NSLog(@"%f + %fi",real,imaginary);
}
-(void) setReal:(double)a
{
real = a;
}
-(void) setImaginary:(double)b
{
imaginary = b;
}
@end