How to swipe a viewcontroller shows as muliple page, only data changing when we do swipe.
please help me out, how should i achieve this task.
Regards
Sri
Apple have a great tutorial from this year's WWDC which shows how to do a paging UIScrollView, which I think is what you want. The example code is here:
http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645
And the video of the presentation (which explains a how it works very well) here:
http://insideapple.apple.com/redir/cbx-cgi.do?v=2&la=en&lc=&a=kGSol9sgPHP%2BtlWtLp%2BEP%2FnxnZarjWJglPBZRHd3oDbACudP51JNGS8KlsFgxZto9X%2BTsnqSbeUSWX0doe%2Fzv%2FN5XV55%2FomsyfRgFBysOnIVggO%2Fn2p%2BiweDK%2F%2FmsIXj
Check out this github project. Just replace the Example View Controller with your own.
Related
I've got an app that appeals to an older demographic. The interface is simple but with some custom controls where a simple graphic is not completely self explanatory (save to playlist, sort by genre for example).
I've seen plenty of apps with great first run walkthroughs (examples here) but don't know if there are some existing libraries out there.
Your suggestions are welcome.
I found CMPopTipView that, while it doesn't fit my needs completely may be of use to those that are looking to pop a tool tip every now and then.
Most of these overlays/walkthroughs can be accomplished by adding a subview to the main window of your app. There are some edge cases to take into account, but for the most part, you need to simply grab a reference to the key window with
UIWindow* keyWindow;
keyWindow = [UIApplication sharedApplication].keyWindow;
You then would add your overlay view as a subview with:
[keyWindow addSubview:anOverlayView];
Handling taps to dismiss the overlay can be done with a tap gesture recognizer.
If you are looking to create a click-through demo which runs in the browser and on mobile devices, AppDemoStore is the right tool for you. You just have to upload some relevant app screenshots, add hotspots for the navigation between the screens and callouts for explanations. It takes only a couple of minutes and it's free.
Regards,
Daniel
I am curious as to whether or not there is an open source solution to replicate the flash button in the iOS camera applicaiton.
I have seem many other apps use this, but there doesn't seem to be a native way, so I assume there is a common source out there.
It is possible to get the flash button by using UIImagePickerController class, but most of the camera apps out there don't seem to be using this (or perhaps they subclass it, which is against apple's terms).
I am looking for a way to replicate the expanding behavior of the button. Any thoughts?
It doesn't sound too hard.
The way I'd do it is to separate the right curve of the button (as images), and make a UIView that has the left part of the button and the right curve as subviews.
When it's tapped, slide the right curve and animate the extra buttons in.
You could use a stretchable UIImage (see UIImage documentation) and then just animate the frame changing.
In the Apple 2010 WWDC Sample code (downloadable via iTunes, otherwise I'd post it here), there are several sample applications which use this control. They call the class ExpandyButton. I realize I'm answering my question, but hopefully someone out there can find this useful.
While looking for a similar solution to this problem I came across this code which was extremely helpful. Similar to ExpandyButton it fit my needs better.
https://github.com/ddebin/DDExpandableButton
I want to set animation for my UIView. I am using CurlUp animation for that. My requirement is to use CurlLeft and CurlRight. These are not available in CoreAnimation as I know. So is there any way by which I can handle the CurlLeft and CurlRight. I don't know a lot about OpenGl. But I don't have any problem with that too. Please guide me and provide me any link by which I can handle CurlLeft and right animation using either OpenGL or CoreAnimation.
Thanks a Lot.
For page turning animations, Ole Begemann has done something like that. His code is available on Github. See my answer to this question for a link.
iBook page flip transaction
His sample project is available for download and shows page curling left and right.
I understand how to include a standard alert within my iPhone application, and can dismiss it with an OK or CLOSE button (see Epicurious example in image).
How can I make a cool alert/notice overlay like the one seen in the foursquare app (see foursquare example in image)? In particular, how to include the alert/notice layout with graphic. Is this a separate view?
If you can point me to a tutorial or sample code that will get me moving in the right direction, it's much appreciated! :)
Answered here.
Jeff Lamarche has a nice write up on the topic here
Sam Vermette has a nice blog post about this http://samvermette.com/309
And this is his corresponding github project.
It's as easy as this:
[SVStatusHUD showWithImage:image status:#"Hello World!" duration:3];
HI There,
I have a View Base Project application and one of the viewcotrollers simply manages a view that houses a UIWebView. I need to be able to detect tapping events on the UIWebView. I've tried suggestion here but cannot get it to work. http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/
Would anyone have a sample viewbased application that implements this method. I think Id be able to then use this sample to implement in my own project properly.
Really stuck and wouldn't be asking only I've tried now for 2 days solid to get it to work.
Many thanks for your help on this.
Tony
I sorted it. Should have read article properly. I forgot to Make sure in your MainWindow.xib file, the window is of type TapDetectingWindow and not UIWindow.
Sorry about that.
Tony