Circular UIScrollView in iPhone - iphone

I want to implement a UIScrollView that has a circular shape in iPhone, kindly guide me so that I can make it possible.

It's easy! Make a UIScrollView that is a perfect square, then do this:
#import <QuartzCore/QuartzCore.h>
scrollView.layer.cornerRadius = scrollView.frame.size.width/2;
I might have my math wrong... I can't test it right now. If it doesn't look right, just fiddle with that cornerRadius property and you'll have a circle in no time :)

The strategy I would take is to duplicate the first view and make it also the view after the last view. Once that "fake" first view is shown, shift all the subviews so that the real first view is where the "fake" first view was. Your users won't even know you switched.
Hope this helps!

Have a look at this link.It will serve your purpose...
Yu can also download the sample code from there for better understanding...
Cheers

Related

Can we create a circular uitableview in iphone program?

Can we create a Circular/ Rounded Shape UITableview ?
I know that we can rounded the corners of table view or by transform we can rotate table view but is need UITableview to scroll in clock wise or anti-clock wise direction.
Can we use some other custom control to implement this.
Check these links.. https://www.cocoacontrols.com/controls/circleview and https://iphone2020.wordpress.com/tag/circular-tableview/. It may help you.
For anybody who has trouble with the above links, you can get the code directly from GitHub here https://github.com/bharath2020/UITableViewTricks. It is a drag and drop solution that you can implement and have working in your project in minutes.

UIView animation slide similar to this picture

I have been searching for a way to do the following:
http://a5.mzstatic.com/us/r1000/014/Purple/9c/af/dc/mzl.hdgiidhq.320x480-75.jpg
I want to have a view but be able to slide through them so they show up one by one..
each view pulls up new data from my plist.
I am not sure what this method is called to properly research it.
could someone please point me in the right direction?
Check out the sample code for Page Control. It shows the basics of a paging scroll view with different subviews on each page.
One of the important concepts is reusing the subviews, which you'll find out about in the sample code.
I think you need a scroll view with paging. User can view its subviews by swiping.
This is not an innovative functionality. It is the default functionality of scrollview.
Hope this helps ...

Is it possible to animate a UIButton to fade or slide off the screen?

I have been browsing SO and various other sites to find out whether this is possible, it definitely seems to be!
The problem I have is every "tutorial" seems to state that the UIButton needs to be inside a UIView of some kind and I can't quite figure out how to get the XIB together to allow the animation.
Any and all help would be greatly appreciated!
just place a button in another view, the animate it's position.
see examples in here: http://github.com/neror/ftutils

Floating a UILabel above OpenFlow

How do you get a UILabel to float above Alex Fajkowski's implementation of CoverFlow called OpenFlow?
Ok I've figured it out. I just had to use bringSubviewToFront with the UILabel.
Thanks to everybody who answered.
Make an OpenFlow instance and a UILabel instance subviews of a parent view, placing the label atop with flow view using -insertSubview:atIndex:, -addSubview: or similar e.g.:
[self.view addSubview:myOpenFlow];
[self.view addSubview:myLabel];
To answer the second question, try this: edit the AFOpenFlowView in IB and add the label view as a subview of that wherever you want it to appear, then set the attributes on the view to Hidden if you don't want it to appear by default. Create an IBOutlet for the label view in your controller so you can easily manipulate it, such as setting hidden to show in order to show it. I'm not familiar with open flow so I'm not sure if it will programmatically create a subview that will obscure your label. If so you may need to use the outlet to move it to the front using UIView methods.
The Openflow example code shows a perfect demonstration of this. Alex adds an info button in the top right of the openflow view using interface builder. This is exactly what you are asking for.
I would add that if you can't understand what is going on from the example code, you should look at more code examples from Apple demonstrating simple UIView usage.
It's not so easy because the label name has to change for each picture. We have to work with index, and with event.. move.. tap.. selected...I'm working on too !

How to control scrolling sound of uipicker?

How to control scrolling sound of uipicker? Any available sample code?
There is no documented way. That being said:
[myPickerView setSoundsEnabled:NO];
Like Peter said, there's no public way to do this. However, if it's really critical you could implement your own picker-type object. Basically, all you need to do is create a UITableView and customize the cells as you like. Then create an image to add as a UIImageView subview that's the same size as the table. At its simplest, all you need is a little bit of gradient fade-to-black at the top and bottom so the cells of the table appear to fade in/out. You could also add a bit of a frame around the table, or anything else really, as you like.
If you take a look at a picker and think of the wheels as just UITableViews with a gradient at the top and bottom, you'll see that the curved effect is just that simple. If you look closely as you scroll the cells offscreen, you can see that they never change shape; they just fade out.
As for the sounds, you could then use any of the UIScrollViewDelegate and UITableViewDelegate methods to monitor when the "wheel" moves and check to see where the table cells are on-screen. Perhaps when a cell passes the mid-way point, you play your custom sound.
It would definitely take a little bit of work to implement this, but is certainly possible if it's critical for your app.