小编Rav*_*ja 的帖子

"C"在SVG路径中的含义是什么?

path fill="none" stroke="#000000" d="M151.5,85.5c0-36.48,29.52-66,66-66"
Run Code Online (Sandbox Code Playgroud)

谁能d=""详细解释一下?我能理解M标签,但我无法理解C标签是什么?和细节:c0-36.48,29.52-66,66-66

svg

6
推荐指数
1
解决办法
8484
查看次数

override isEqual Objective-C

我的课

@interface sample:NSObject{

   double x;

   double y;

}
@property double x;

@property double y;

-(sample *)initWithX: (double)x andY:(double) Y;


@implementation

@synthesize x,y

-(sample *) initWIthX: (double)x andY:(double)y{

    self = [super init];

    if(self) 
    {

      self.x = x;

      self.y = y; 

    }
     return self;

}

-(BOOL)isEqual:(id)other{

 if(other == self)
   return YES;
 if(!other || ![other isKindOfClass:[self class]])
   return NO;
 return [self isEqualToSample:other];  
}


-(BOOL)isEqualToSample:(sample *) other{

 if(self == other)    
   return YES;

 if (!([self x] ==[other x])) 
   return NO;

 if (!([self y] ==[other y])) …
Run Code Online (Sandbox Code Playgroud)

objective-c

1
推荐指数
1
解决办法
2752
查看次数

标签 统计

objective-c ×1

svg ×1