首页 > TAG信息列表 > forKey
swiftgen + Localize_Swift 实现app内切换语言
最近在给自己的app 做国际化,做个总结 顺便回答了个stackoverflow 的问题: https://stackoverflow.com/questions/45731079/changing-language-at-runtime-using-swiftgen Now you can config lookupFunction params in swiftgen.yml file strings: inputs: - en.lproj outpios swift 知识点记录
1. 定义变量 var name = "***" 定义常量 let name ="*****" 2. swift 变量类型 String, Int, Float, Double 3. swift 逻辑操作符 && , ||, ! 4. swift 关系运算符 ==, !=, >=, <= 5. swift storyboard界面元素跟code绑定,右键(button , label什么的),左键按住划线到view,第35月第29天 iOS 修改图片的亮度、对比度、饱和度
1. UIImage *myImage = [UIImage imageNamed:@"Superman"];CIContext *context = [CIContext contextWithOptions:nil];CIImage *superImage = [CIImage imageWithCGImage:myImage.CGImage];CIFilter *lighten = [CIFilter filterWithName:@"CIColorControls&iOS keychain 卸载后依然存在的持久化存储
// 封装 #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface SecItemHelper : NSObject + (void)saveFromName:(NSString *)name data:(id)data; + (id)loadFromName:(NSString *)name; + (void)deletedataFromName:(NSString *)name; @end NS_ASS