Does anyone have an Idea how to implement an UIAlertView for rating purpose like Apple show when you are removing an app from the iPhone?
You can choose how many stars to rate the app or don't rate it at all.
I already have a view that shows the stars according to the user touches but don't know how to connect it to the UIAlertView...
Thanks!
A good tutorial how to do this:
http://iphonedevelopment.blogspot.com/2010/05/custom-alert-views.html
I like the TSAlertView. It's a complete replacement of UIAlertView based on UIView. So you don't use any private APIs.
I used it in multiple projects and I really like it. Take a look at it. With that one it should be easy to add your "starview" to the AlertView becuase you have methods to add a contentView.
Related
I would like to change the tint color of my UIActionSheet for my iOS apps. Is there an easy answer or custom class which I can use to achieve this?
I have found help on changing the colors of the Action Sheet buttons which is helpful, but I haven't found anything about changing the background color.
There is no API, but you could subclass UIActionSheet and play around with its subviews array till you find the one that draws the background and either edit it directly, or add a subview to cover it up.
While this isn't the greatest approach, it isn't using any hidden APIs to it won't get rejected from the iTunes store. Before iOS 5, this is how most customization was done.
Here is a great example of doing it with Navbars.
I am not able to respond to the above comments. However the link provided by #Luke is broken, but I have found it to be active here: https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets
There is no legal API for this, and if you use illegal API your app will be rejected from the app store. The simplest solution is to roll your own interface and not use UIActionSheet.
i am noob and new in development iphone application so i want to create a slide show(ios 5 with storyboard) ( banner with 5 or 6 image and every image the user can clicked on him and go to link in itunes for the app it's like a banner but no only one it's multiple )
i want the user can swipe between images and can click in every one and go to specific link so if on people have a tutorial or documentation or sample code for how to do this it's will be very helpful thanks
you can understand UIGestureRecognizers by some examples like these:
http://www.icodeblog.com/2010/10/14/working-with-uigesturerecognizers/
How to detect Swipe Gesture in iPhone SDK?
http://iosdevelopertips.com/event-handling/gestures-recognizers-tap-pinchzoom-rotate-swipe-pan-long-press.html
Best way is to use UIScrollView with paging, so you'll have to deal with only one UITapGestureRecognizer.
Take a look at the Facebook app's Three 20-framework for inspiration:
http://joehewitt.com/2009/03/23/the-three20-project
There is a fully functional slideshow-framework in there that you can look at and get some idea as to how you can make it on your own.
The TTPhotoViewController is the class you are looking for:
https://github.com/facebook/three20/blob/master/src/Three20UI/Headers/TTPhotoViewController.h
What is the kind of alerts like the iPhone volume
See picture:
http://caius.name/images/ringer.jpg
Thanks,
There's no built-in support for those alerts, but they're pretty simple to create on your own. You can construct the alert programatically, or what I've done in the past is just to create an image like the one you linked to and add any dynamic components as subviews.
If you want something significantly more powerful, check out MBProgressHUD.
http://github.com/jdg/MBProgressHUD
I'm writing an application that uses UIImagePickerController. I'd like to give users choice of source of pictures, either take a new photo or choose from existing ones. I'd like to create exactly the same selection interface as is in twitterfon or in safari when you hold tap on the link. It looks like some standard SDK thing but I have completely no clue where to find some sample code. I've googled for hours and I have nothing.
I would really appreciate any tips.
Thank you
What you're looking for is the UIActionSheet. The documentation has everything you need to set one up and how to respond to which button is pressed.
You'll also want to use the constants defined for the UIImagePickerController sources, namely
UIImagePickerControllerSourceTypeCamera
UIImagePickerControllerSourceTypePhotoLibrary
That would be an UIActionSheet. Make sure to point its delegate property to your implementation of the UIActionSheetDelegate protocol to catch clicks on the buttons you define.
Does anyone know what is the name of the button in the right corner of the toolbar in the new Maps application? It's the button that unfolds the map and the view underneath offers buttons to switch between map modes. I would like to use it in my map application if it's a part of the SDK!
EDIT:
Thanks for your answers!
What is an undocumented method? And how come you can use this stuff but it's not really desired by Apple? Will it be released in a future SDK? I don't see the point in creating an app that has features unavailable for all developers. This is a lot of questions, please point me to resources where I can find out more about this process if you know any (like where do you know all this from)?
Also, where can I find types of animations for views, like the one Cory mentioned?
It's not part of the SDK. The actual file names of those images are UIButtonBarPageCurlSelected.png, UIButtonBarPageCurlDefault.png, so probably you can call it the "page curl button".
The unofficial way (warning, rejection, etc.) to get this button is to use
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:109 target:... action:...]
To download a UIImage of these images from UIKit to add them into your project later, use [UIImage kitImageNamed:#"UIButtonBarPageCurlSelected.png"] and so on.
There's no standard UI component for this button, sorry. If you're resourceful, you could probably figure out a way to pull the image out of Maps, but Apple might not take kindly to using their art in non-approved ways.
The only EASY way to do this is to use an undocumented method. This is banned by Apple and will result in having your application rejected from the app store. You can create something similar with UIViewAnimationTransitionCurlDown or UIViewAnimationTransitionCurlUp but these will cause the view to curl all the way up and not stop halfway.