Specifying different images as left and right borders css - css-sprites

I have to mix 2 images (from different sprites) and generate a single button out of them.
I tried using the css properties 'border-left-image' and 'border-right-image' in chrome. But it does not work. Tried pre-pending the

id have a look here
http://css-tricks.com/6883-understanding-border-image/
this should explain what you need to do and what is doable!
UPDATE
looks like you might be able to accomplish this using multiple background images which is CSS3 based take a look at the link for more information!
http://www.css3.info/preview/multiple-backgrounds/

Related

Change color-theme in whole iOS application

I am going to implement Alert feature in my application.
When user taps an alert button my application is about to change all orange (default) colors to red (Navigation bar, switches, Tab bar, Buttons, views and other stuff).
I want to implement it using "css" files also known as stylesheets.
I've found two libraries: Motif and NUI.
The most important problem is to dynamically change theme inside application. Motif can do this but I want to do it more simple.
Also I learned that NUI can change the app theme too but I can't to change it dynamically.
P.S. I am using storyboard and XIB-files. I need to add runtime attribute for object's key-path. This attribute will go to my stylesheet file and apply styles. It's the most simple way I think.
Can I do it simply and without any libraries?
P.S.S. NUI is more simple for me. Maybe you know how to change styles when application runs.
There are ways of making this work, but not very simply. So your options are either to construct your own solution, or use a library.
If you are looking for something that feels easier and more native than NUI or Motif, and which also lets you assign styles and see them rendered live inside your storyboards, take a look at my library for this: https://github.com/daniel-hall/Stylish
Here is a demonstration of changing the "stylesheet" (which can be created either in code, or in an external JSON file) at runtime:

How to handle multiple SRT files on MPMoviePlayerController

I want to do something special with MPMoviePlayerController; So that I can show option for user to select its own choice's subtitle. For example English or Spanish.
Currently, i am using mhergon/MPMoviePlayerController-Subtitles but it will just give support of using one subtitle.
I want to show options to user like this image:
If user will tap on Off then no subtitle will be shown (Its working); Now i want to give two language options; Means, two SRT files should work for one video and also they should be properly synced with video timing.
If any one experienced such a work then your help will be more appreciable. I was thinking to make some customisation work within mhergon/MPMoviePlayerController-Subtitles but it may be not good because originally, its writtern for just one subtitle.
I have done changes in mhergon/MPMoviePlayerController-Subtitles to add support of multiple subtitles. If any one needs it in future, please have a look at this library.

How does Uber achieve this UI in WatchKit?

How does it superimpose elements (the timer is above the map) ?
To my understanding, you can only use background images on groups, no other kind of custom views...
Any idea ?
My initial guess is that they're using a dynamically-generated image of a map as the background image in the group. The giveaway is that, while WKInterfaceMap allows you to add custom annotations, you can't draw custom shapes like the blue route line.
I could be way off.
The way Uber (and most of the big companies custom's UI) is done is that they're just generating an image in the iOS which is the sent back to the WatchKit extensions and simply displayed as an image.
If you want to create your custom UI with hte current version of the SDK, this is the only way to achieve exactly what you want. You will need some hacks to achieve interactivity but you should be able to do that on your own :)

How to show multiple images in a single page of LeavesViewController?

The classes provided by Leaves developed by Tom Brow supports single images for each page of the book with flip effect. In one of our projects we need to show multiple images in a single page along with the flip effect. Has anybody done that with 'Leaves' or is there any other alternative?
We need this images to be added separately so that we can use UIImage selected actions as this images are also required to replaced.This view will also have UITextBox and UILabel.
I know that from iOS 5 on wards UIPageViewController is available which can serve this purpose but for this project we need to support iOS4 also so UIPageViewController can be ruled out.
Try to render two images in a graphics context and then extract the image from the context and draw it in pdfcontext. Hope this might help you.

Add styles to dynamically downloaded images in iOS app

My question is: Since I have an app that downloads images from TMDB (the movie database) and I can't edit them in Photoshop before adding them to my application I was wondering if there was a way to add effects. Like a nice drop shadow and a 1 pix border to my images dynamically as they are downloaded or referenced from within application? (during development)
I can't seem to find a way to do this. I'm probably looking in the wrong place though.
Any help?
You can easily do all that using Quartz.

Resources