在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Pixate/pixate-freestyle-ios开源软件地址:https://github.com/Pixate/pixate-freestyle-ios开源编程语言:Objective-C 85.0%开源软件介绍:Pixate FreestylePixate Freestyle is a native iOS (and Android) library that styles native controls with CSS. With Freestyle, you can replace many complicated lines of Objective-C with a few lines of CSS. This simplifies and centralizes your styling code, and offers other benefits as well.
Getting StartedInstallationThere are several ways to download and install the Pixate Freestyle framework. The easiest is to download the installer, which always contains the latest version, and drag PixateFreestyle.framework into your Xcode project. Alternatively, you can download the framework file only (i.e. no samples) by going to the releases section of this repo. NOTE: The installer will place the files into your Documents folder in a folder named PixateFreestyle. Once installed, add the following import to the top of your main.m file:
In the body of your main method, add the following line before the return:
Your main method should look something like this:
If you use CocoaPods, install the Freestyle cocoapod by adding PixateFreestyle to your Podfile:
RubyMotion, Xamarin, and TitaniumModules are also available (with source code) for using Pixate Freestyle on iOS with: Migrating from Pixate FrameworkIf you are migrating from the Pixate Framework, you’ll only need to make a few changes, namely updating your imports to use ‘PixateFreestyle’ and updating your initialization method in your main.m. In terms of your ‘#import” lines, just update them to read as follows:
And like the Installation step above, just change your main.m to look like the following, you no longer need to use a license key or user name.
Styling Apps with CSSPixate Freestyle allows you to add IDs, Class'es, and inline styles to your native components, and style them with CSS. Learn more about this here. For now, let’s make a simple app that styles a single button. Follow this short video and then add the following CSS code to a new file,
Moving Faster with ThemesYou can build the style of your app piece-by-piece using the method above. For even faster development, use a pre-built Freestyle theme. Themes have pre-built CSS and Sass that can be quickly customized to style an entire app. Learn more here. Mailing List & TwitterKeep up with notifications and announcements by joining Pixate's mailing list and follow us on Twitter. DocsYou can find the latest Pixate Freestyle documentation here. Compiling Freestyle SourceTo compile the Pixate Freestyle source outside of Xcode or your project, just clone the repo and go into the scripts/ directory. From there, run the 'build_framework.sh' script. It will compile the framework and create a "FAT" binary and place it in a build/ folder at the root level of the repo. ContributingPixate welcomes contributions to our product. Just fork, make your changes, and submit a pull request. All contributors must sign a CLA (contributor license agreement). To contribute on behalf of yourself, sign the individual CLA here: http://www.freestyle.org/cla-individual.html To contribute on behalf of your employer, sign the company CLA here: http://www.freestyle.org/cla-company.html All contributions:
More information on the Apache License can be found here: http://www.apache.org/foundation/license-faq.html SupportPixate offers various levels of free and paid support. Please visit our support site for more details. LicenseExcept as otherwise noted, Pixate Freestyle for iOS is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论