typedefstruct{ 萬寧ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)公司的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18982081108(備注:SSL證書合作)期待與您的合作! NSUIntegerline; NSUIntegerrow; } TileLocation; //轉(zhuǎn)換為NSValue NSValue*value = [NSValuevalueWithBytes:&tileLocobjCType:@encode(TileLocation)]; //轉(zhuǎn)換回結(jié)構(gòu)體 TileLocation loc; [valuegetValue:&loc]; CGRect rect1 = CGRectMake(0, 0, p_w_picpath2.size.width, p_w_picpath2.size.height); CGRect rect2 = CGRectMake(p_w_picpath2.size.width/4, 0, p_w_picpath2.size.width/2, p_w_picpath2.size.height/2); NSValue *rectValue1 = nil; NSValue *rectValue2 = nil; rectValue1 = [NSValue valueWithBytes:&rect1 objCType:@encode(CGRect)]; rectValue2 = [NSValue valueWithBytes:&rect2 objCType:@encode(CGRect)]; NSArray *rectArr = [NSArray arrayWithObjects:rectValue1,rectValue2, nil]; CGRect tmpRect; [[rects objectAtIndex:i] getValue:&tmpRect]; |