Comments (15)
from flatuikit.
from flatuikit.
Is this error happening in the example project? Or in your own project?
from flatuikit.
@jamieomatthews Not an error, but catch the exception every time when I debug. In my own project.
from flatuikit.
Did you copy the fonts over to your project? I bet this is the problem.
Verify that you have followed steps 1-4 of this article
http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
from flatuikit.
@jamieomatthews Yes. I'm using the pod. I even copy the ttf fonts to my project, it still catch the exception.
from flatuikit.
You need to do more than copy the ttf into the project. You need to copy it, make sure its added in the target, and add the font name to the bundle. Verify that all this is done
from flatuikit.
@jamieomatthews I'm not using the pod now and do it as you said, but the same.
from flatuikit.
Yep, this means that one of the fonts ("Lato-Regular", "Lato-Bold", "Lato-Italic", "Lato-Light"), has not been copied into the project correctly. This is not a problem with the project, just your configuration. Please refer to the link I sent that debugs adding a font to an iOS project.
from flatuikit.
I don't know why, but I failed.
from flatuikit.
Show me a screen shot of your plist as well, where you added the fonts
On Thu, May 7, 2015 at 11:17 AM, Ganko [email protected] wrote:
[image: image]
https://cloud.githubusercontent.com/assets/1269898/7518514/0e6eebe4-f50e-11e4-8d4c-f56454afdf6c.png
I don't know why, but I failed.—
Reply to this email directly or view it on GitHub
#184 (comment).
from flatuikit.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>zh_CN</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.MyLike.CRM</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.20150501</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>flat-ui-icons-regular.ttf</string>
<string>Lato-Bold.ttf</string>
<string>Lato-Italic.ttf</string>
<string>Lato-Light.ttf</string>
<string>Lato-Regular.ttf</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
Even if I removed the ttf in the plist, it still catch the exception.
from flatuikit.
Oh, it's because of the FontAwesome.ttf
!!! Thanks so much! I removed FontAwesome.ttf and everything goes well!
from flatuikit.
Cool, cheers
On Thu, May 7, 2015 at 11:24 AM, Ganko [email protected] wrote:
Oh, it's because of the FontAwesome.ttf!!! Thanks so much! I removed
FontAwesome.ttf and everything goes well!—
Reply to this email directly or view it on GitHub
#184 (comment).
from flatuikit.
Thanks for your time. I added FontAwesome.ttf
file to the building setting tab and now OK as well.
from flatuikit.
Related Issues (20)
- Cocoapod: NSString+Icons missing in v1.5 HOT 2
- UIButton frame cut off HOT 4
- Swift Compatibility? HOT 14
- FUISwitch: -setOn:animated: does not propagate the animation flag HOT 1
- Deprecated warnings HOT 1
- NSInvalidArgumentException HOT 5
- No rounded corners when using UITableViewCell+FlatUI.h
- Can't build in Cocoapods for Ios 8 HOT 11
- FUIAlertView Issue - Swift HOT 1
- FUISegmentedControl has wrong height at run time
- Custom view in AlertView
- UIFont (FlatUI) display error charaster HOT 4
- Swift 2 Release HOT 1
- Numerous deprecations
- AlertView swift HOT 1
- Is it possible to use FUITextField for SearchBar? HOT 1
- Command Failed due to signal : Segmentation fault : 11 HOT 1
- I called [alert show],But nothing happened... why?
- FUIButton background is inconsistent on plus size iPhones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatuikit.