IOS字体库

//设置特殊字体 循环字体名称
    for (NSString * familyName in [UIFont familyNames]) {
        NSArray * fontNames =[UIFont fontNamesForFamilyName:familyName];
        NSLog(@"familyName: %@",familyName);
        for (NSString * fontName in fontNames) {
            NSLog(@"   fontName: %@",fontName);
        }
    }
        //背景磨砂玻璃效果
        UIBlurEffect * blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
        UIVisualEffectView * effectview = [[UIVisualEffectView alloc] initWithEffect:blur];
        effectview.frame = CGRectMake(0, 0, _InputView.frame.size.width, _InputView.frame.size.height);
        [_InputView addSubview:effectview];
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。