How can i add the customized slider with previous and next buttons to the view in iphone? - ios

In my app i need to display the slider,to scroll the view by view.(page by page).how can i?
I need to disply the slider as above image

You would have to subclass it and initialize it with that image or whatever image you want it to look like.

Related

How to use ImageSlideshow and a label

I'm using this library as slideshow:
ImageSlideshow
now,I want to add label over it but that show behind of image :
I cannot change position label title and image slider.
You can call label to front by
try this
self.view.bringSubview(toFront: yourlabel)
or use
yourimageslider.bringSubview(toFront: yourlabel)
or use
yourscrollviewName.bringSubview(toFront: yourlabel)
You can send image view to the back by
or could use
self.yourscrollviewName.sendSubview(toBack: yourImagesliderName)
You can use
self.view.bringSubview(toFront:subViewObj)
subViewObj might be your label, But subViewObj should be added some where in root view. Here the root view is self.view.

How can I increase/decrease the brightness of the image in iOS?

I've an image , I want to increase/decrease its brightness by using a UISlider? How can I do it?
Is there any default method are available for this? If yes, please tell me..
Thanks!
If you don't want to use the link and want to code a custom solution try this:
In your Storyboard add an imageView with the image
Add a view that has a white background color
Add a view with a black background color
Add a slider and make sure they aren't in each others views!
Now use CNTRL + click to create your properties in the .M file
Create the method for the slider by CNTRL + clicking below the viewDidLoad method and name the method something like sliderChanged:
Change (id)sender to (UISlider *)sender
Last thing to do, fill the method body with this!
these are screenshots from the custom brightness app you just made:

proper way to set background image to IPad App

I have a working IPad App. I built everything on a default white screen and I want to add an image to background of the image. I read a couple of articles and most of the suggest to create a new UIImage with the background image and stretch it to the full screen. I tried that but I am using a couple UIImage to display the photos taken and my UIImage s seem to stay at the back of the background and they don't get shown.
What is the proper way to set the background of IPad App?
this is the screenshot of my IPad App
Follow these steps :
1) Add UIImageView to your UIView.
2) Fill it with your Background UIImage.
3) Select your Background UIImageView and Select "Send to Back" Option....
The key is your view hierarchy. If you do not want to hassle around with moving the subviews along and sendings ome to back and some to front, then start with a proper view hierarchy from the beginning.
Basic rules are: the subviews overlay their superviews.
If siblings overlay each other, then the last one added is shown.
Your view hierarchy could be:
\UIView (A: the underlying self.view from the view controller's point of view.)
\UIImageView (B: the view for your background image. Empty or hidden from start.)
\UIView (C: Container for all of your views, no background color, no background image)
\UIImageView (C1: One of your picuters)
\UIImageView (C2: One of your picuters)
\UIImageView (C3: One of your picuters)
\UILabel (C4: One of your labels)
\ ...
Build up your view hierarchy. And when you need to add or change the background then assign the appropriate UIImage ot the View B.
Certainly, there is more than one way to achieve this. However, I personally thinkthat some proper view hierarchy works best, regardless whether you do that in IB or programmatically.
The proper way is to create a UIImageView and set it to the size of your view, and put all the others View in fron of it. The tutorials that you read are giving you the right way.
If you do not want to add an image, only a color you can set the background color of your view to this color.
You can use this code to send the ImageView to the back:
[self.view sendSubviewToBack:YouBackgroundImageView];
EDIT
Because you posted and XIB screenshot:
Your background image view must be in the first position, like this image:

Open view controller with custom animation

I have an srollview with many images. After some image had touched I should open new view controller with this image and related images for image that was touched.
Now I use pushViewController.
So question is. Is it possible to open new viewController wiht zoom animation?
i.e. after user touched image, this image is zooming into the center of the screen (and this is new viewController already)
If it's possible please let me know with what I can realise it.
Thanks
I have good news and bad news for you. The good news is yes, it can be done! The bad news is that it can be complex.
The way I ended up doing it was as follows
when the user taps the image, you know what image to zoom, and you grab a reference and a frame
overlay a new view over the current view containing the scrollView, then add a NEW UIImageView containing another UIImage of the one the user tapped (could even be a higher resolution version)
animate that view to fill the screen (this image can be in a zoomable scrollview too, that's for future work!)
when you want to dismiss, you animate the frame down to be exactly whats in the scrollView, then you remove the overlay view
now users is more or less back to where they were before the tap

send thumbnail image to another view for bigger image view

i have 3 images in my display where i use CoreData to store them images and to view them in the display. Now i would like to touch these images and it goes large in another view. Ive tried using touch events bt nothing seems to work. Can anyone assist me please
You can put a transparent UIButton over the image and declare a IBAction on the button and get the image according to button tag. Then pass the image to next controller.

Resources