내 응용 프로그램 내에서 글꼴을 추가하고 사용하려고합니다. 이 게시물을 참조하기 위해 따라 왔지만 제대로 작동하지 않습니다.내 xcode 프로젝트에 사용자 정의 글꼴을 추가하고 사용하는 방법
보조 파일로 Frutiger95UltraBlack.ttf
글꼴을 추가 한 다음 내 {app-name} -Info.plist에 추가했습니다.
내을 변경하려면 내 응용 프로그램 대리인에서 사용하려고했지만 아무 일도 일어나지 않습니다.
무엇이 부족합니까 ??
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
[UIFont fontWithName:@"Frutiger95UltraBlack" size:16.0], UITextAttributeFont,nil]];
'[UIFont fontWithName : ...]로
NSForegroundColorAttributeName
및UITextAttributeFont
와UITextAttributeTextColor
교체'* 파일 이름이 다를 수 있습니다 매개 변수로 글꼴의 * 포스트 스크립트 이름이 필요합니다. 글꼴을 전혀로드하지 않았는지 확인하려면 해당 메서드를 별도로 호출하십시오. –@ MartinR이게 내 문제를 해결했습니다. 답변을 게시 해 주셔서 감사합니다. –
답변이 도움이 되었기 때문에 기쁩니다. –