I am porting an android application to iPhone. There is a custom alertdialog for android with custom animation for loading contents from the server. Can we replicate this on iPhone?? Kindly guide for the same and oblige.
No for this we need to show alertDialog programatically in ios there is no available custom alertdialog use https://github.com/jdg/MBProgressHUD it's good for showing alertDialog
Look for an alert view implementation on github / cocoacontrols which allows you to add a custom subview and show an image animation there (using UIImageView and a set of images which are the frames of your animation).
Related
I am going to create chat app using ios native sdk (Swift) and i found JSQMessagesViewController for chatting.
Can I use it in my app and apple will allow this?
Also I have inherited JSQMessagesViewController in my viewController.
I have used NavigationController also in the viewController.
When I open the viewController it open in full screen but i need it half screen.
Can anyone help me ?
Thanks
Yes you can. Set up a container view that takes up half the screen and create a custom subclass that uses JSQMessagesViewController for the container view.
Make sure that you have appropriate constraints set up such that the container view only takes up half the screen and the other half contains whatever view elements you want.
The iPhone camera toolbar holds the following buttons: cancel/record
I would like to change the cancel button to the small image button that takes me to the photo library.
I wasn't sure if i need to use the overlay or does the xcode have something more comfortable in this case since this is something well known and used.
Is there something like this?
Thanks,
You can set overlayView to your UIImagePickerController
imagePicker.cameraOverlayView = yourOverlayView;
UIImagePickerController Class Reference
You can customize an image picker controller to manage user interactions yourself. To do this, provide an overlay view containing the controls you want to display, and use the methods described in “Capturing Still Images or Movies.” You can display your custom overlay view in addition to, or instead of, the default controls. Custom overlay views for the UIImagePickerController class are available in iOS 3.1 and later by way of the cameraOverlayView property. For a code example, see the PhotoPicker sample code project.
I want to have a custom view for UIActivityIndicatorView rather than relying on options given by iOS. How can I create my own view here?
I have a list of images with me to create a animated view.
As you haven't specified the case in which you want to use the activity indicator,
check the below tutorial blog for custom UIActivityIndicatorView,
Custom UIActivityIndicatorView (EDIT: This link is gone)
Showing a "Loading..." message over the iPhone keyboard
This is implementation of custom UIActivityIndicator from scratch ready for integrating.
Abhinav, if you want to use a set of images you could as well use a UIImageView. Set the animationImages and start-stop as you wish.
This one looks nice and clean, can be hooked to the code easily too.
how to remove default done button of MPMovieController in iphone?
Try this,
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
You can't add it directly to the MPMoviePlayerController's view -- that's a private view and it can't be accessible.
If you want to add buttons, you need to create a transparent window over the top of everything and add the buttons to that.
Apple's MoviePlayer sample shows how to do this.
It's common to see a UISearchBar in an application, that upon a click, will enlarge and animate into view with a keyboard. I'm curious, is this something the iPhone SDK provides for free, or is the Animation code more than likely written by the developer? I use a UISearchBar in several controllers, however by default a keyboard just pops into view, the search bar does not animate in any fashion. This is also very prominent in apps that have a search icon. How is it typically done?
This can be easily implemented using the UISearchDisplayController using the iPhone SDK 3.0 and above.
See the TableSearch example project, included in the SDK.
There is a discussion "UISearchBar like Contacts" on this at the apple site.
Did you put it in through Interface Builder or programatically? Because by default the keyboard animation should play.