UISlider in thermometer-ios - ios7

I need to set the UISlider in thermometer. Here am setting the slider left track image in red color and right track image in white color and a thermometer image is available.when the user tap on the slider,value increases and it gives the look of thermometer.How to set the slider inside that image?I have tried in many ways but UISlider is hiding behind the thermometer image. And also please tell me the image size for thumb,left track and right track images.
https://itunes.apple.com/us/app/ptsd-coach/id430646302?mt=8
Please refer the fourth screenshot in the above link.I want to do the exact.
Please help.

Related

UIProgressView: modify height for track line

Currently I'm able to customize my progress bar modifying the whole height, in this way:
let transformScale = CGAffineTransformMakeScale(1.0, newProgressbarHeight)
self.progressBar.transform = transformScale
There is a way to modify the height of track in order to obtain a progress bar like this?
As a workaround I was pondering of put a gray view under the progress bar track tint color to clear color.
Any ideas?
iOS 5 or later, UIProgressView could set its FrontProgress Image(Green Fat)
And its Background Image(Gray Slim).
You could set Two different picture to simulate this effect.
Front Image property: progressImage.
Background Image property: trackImage.
Or,
If you only like Pure Color to avoid wasting any resource, I think the method below will fit your demand.
1.Create two UIProgressView.Fat and Slim, Front and Behind.
2.Set the Front One's trackTintColor [UIColor clearColor].
The code and effect in simulator
I hope these could help you. Good Luck!

Two UIbutton with different width after autoresizing

I have two UI buttons placed equal horrizontally, i have tried many autolayouts, but i could not make it both of equal heights and within screen limits. i can make it of same width but then the second button goes out of screen. Screen shot is attached as well.
Can you please guide me how can i do this?

xcode6 storyboard uibutton image title laybout

how can i set button's image and title correctly position.
now the storyboard preview like:
I add title and image to the button and set title and image edgeinset to get picture layout. but the button'size is changed with the phone size. so i can't set it in storyboard properly for all size.
i want to to know is there a way to deal with this situation?
thanks!
see the tutorial link below ,
http://www.appcoda.com/introduction-auto-layout/
it's show how to fix constant heigh and width of view.
you see clear in image how it done.

UIImageView Clip Subviews in code

I have been able to get the behavior I want using Xcode and the Attributes Inspector. I have also found a lot of really good information here on stackoverflow. The problem I cannot resolve is that cropping an image in code uses pixels but the rect I have is in points. Help!
This is what I am trying to do: I have an image that is full size on the iPhone. I want to capture a portion of the center of the image. But I want that portion to be the size of my rectangle.
In Xcode, I created a view with a uiimageview with the uiimageview view mode = center and Clip Subviews checked. Then, in code I set the image. Voila! My image is cropped at the center and displayed in the rectangular shaped view.
Can someone please help me do this in code? I've been trying different approaches for days....feeling pretty dumb by now.
Thank you in advance for your help.

Load larger image on tap of small image with animation

I'm trying to load a large version of an image in the centre of the user's screen when then tap on a smaller version of the image that's already on my view.
Ideally I want to do this using an animation to get to the new image like a vertical flip.
Also if there's a way to make the background look greyed out like it's not the foreground then that would be even better.
Here's an image of what I'm after, I'm at work at the moment so haven't got access to the actual code / images.
I'm a new user so can't add pictures. Click here if you want to see what I'm thinking.
Image
There is an KGmodal Example Exist in GitHUB hope that Might Help you.
You have to Change the content view and Add an Imageview Programatically (with required size ) in the content View.
Follow the below link: https://github.com/kgn/KGModal
For Fliping the image see the tutorial iphone Flip Image.
In the end I added the larger image on to begin with and set its alpha to 0, then added a gesture recognizer on the smaller image that animated the larger one and gradually changed its alpha to 1. The did the reverse on the large image. Don't know why I didn't think of that in the first place!