2014-12-18 4 views
2

같은를 Aller 글꼴 가족의 글꼴을 추가하는 방법에 대한 내 응용 프로그램이 충돌 나는 제대로 내 PLIST로 추가하고 내가이를 Aller font.For 동일한 코드와 동일한와 시스템 글꼴을 무시하고 사용자 정의 UIFont 클래스를 만들었습니다 내가 Lato 글꼴을 통합하는 경우 절차. 문제가 Aller 글꼴에만 해당됩니다., 굵게 일반 및 기울임 꼴

이 정말 혼란스러운 상황이 .Even 나는 solution.Finally 연구에 많은 시간을 보냈다있다
il passed to [UILabel setFont:] and [UILabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000 
2014-12-18 15:33:50.715 2497:72343] Unable to load string table file: CFBundle 0x7fcfcae121a0 </Users/arun/Library/Developer/CoreSimulator/Devices/8A7E96AE-E960-4DAF-BD6F-79E533711C63/data/Containers/Bundle/Application/50D90A3E-10C5-4E02-A0D3-A1AAA86508D8.app> (executable, loaded)/Main: The operation couldn’t be completed. (Cocoa error 3840.) 
2014-12-18 15:33:50.735 [2497:72343] nil passed to [UIButton setFont:] and [UIButtonLabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000 
2014-12-18 15:33:50.737 [2497:72343] nil passed to [UIButton setFont:] and [UIButtonLabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000 
2014-12-18 15:33:50.737[2497:72343] nil passed to [UILabel setFont:] and [UILabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000 
2014-12-18 15:33:50.742[2497:72343] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: NSParagraphStyle)' 
+2

당신은'[: "를 Aller 뭔가 뭔가"크기 @ (CGFloat)이 UIFont fontWithName 즉 테스트 적이 있습니까? 내가 글꼴 이름은 당신이 기대하는 것과는 많은 차이가 있음을 경험했습니다 :) – mbogh

+0

예 내가했고, 같은과의하지 working.Still 충돌합니다. –

답변

4

특히를 Aller 같은 글꼴 하나를 가지고,이 .IT 나에게 도움이 시도 할 수 있습니다. 폰트 서체에서 파일 및이 표시되는 글꼴 이름을 사용 열어 글꼴의 적절한 이름을 확인하십시오. `실제로 UIFont 객체를 반환

+0

: -이 내 이일을 낭비 많은이 지금 작업 issue.Thanks 감사합니다. –

+0

너무 나를 위해 일한 :) – Matt

+0

덕분에 @srm. 이렇게하면 많은 시간을 절약 할 수 있습니다. –

관련 문제