css in mobile apps

16
CSS for iOS Pixate is a free framework that lets you style your native iOS views with stylesheets.

Upload: baljeet-singh

Post on 11-Jul-2015

80 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: CSS in Mobile Apps

CSS for iOSPixate is a free framework that lets

you style your native iOS views with stylesheets.

Page 2: CSS in Mobile Apps
Page 3: CSS in Mobile Apps
Page 4: CSS in Mobile Apps

Demo Session1.Download Pixate Framwork from http://pixate.com

Page 5: CSS in Mobile Apps

Demo Session2.Create a new Project in Xcode 5 with Single View Application

Page 6: CSS in Mobile Apps

Demo Session3.Open Pixate package and Drag & Drop Pixate.framework in the Project.

Don’t forget to mark “Copy items into destination group’s folder” and Create groups for added added folders.

Page 7: CSS in Mobile Apps

Demo Session3.Now add CoreText and QuartzCore frameworks in the bundle from Build Phases.

Don’t forget to mark “Copy items into destination group’s folder” and Create groups for added added folders.

Page 8: CSS in Mobile Apps

Demo Session3.Add “–ObjC” in other linker flags

Page 9: CSS in Mobile Apps

Demo Session3.Open Storyboard and Drag a button on the respective View Controller. As you can see there is no CSS Design at all.

Page 10: CSS in Mobile Apps

Demo SessionNow Create a New File within the Project. Select Others option from the Left Panel under iOS section ,select Empty File and click Next . Named the file as default.css and press Create

Page 11: CSS in Mobile Apps

Demo SessionIn default.css file you need to create a Class or /and ID for UIControl design. For ex. Create a .btn class for a UIButton

Page 12: CSS in Mobile Apps

Demo SessionSelect a UIControl and Add a new row under “user Defined Runtime Attributes”

Page 13: CSS in Mobile Apps

Demo SessionDouble Click on keypath to begin editin and type “styleClass”.Select type String and Class name that you have previously created in the default.css file.

Page 14: CSS in Mobile Apps

Demo SessionRun the App on Simulator/Device.

Page 15: CSS in Mobile Apps

My App theme Create with CSS

Page 16: CSS in Mobile Apps

Pixate Flexibility