UIColor有没有人可以告诉我我将如何编码

问题描述 投票:0回答:1

带有uicolor的参数喜欢这张照片

image

swift methods arguments uicolor theos
1个回答
0
投票
%hook CNContactView
-(void) setBackgroundColor:(UIColor *)arg {

   // You can use this one
      arg = [UIColor redColor];


  // Or this one
     arg = [UIColor colorWithRed:36.0f/255.0f green:52.0f/255.0f blue:71.0f/255.0f alpha:1.0];


   return %orig;
}

%end 
© www.soinside.com 2019 - 2024. All rights reserved.