When we use UIImagePickerViewController class, if we allow editing YES then we found the same view i attached here, As per my work requirement i have to change the "Choose" button title to "Accept", How could we do this?
I didn't use overlay view for this.
Every helpful reply would be highly appreciated.
Thanks in advance.
You will have to use an overlay view to create a custom toolbar with the buttons you want on it. If you modify the buttons on the existing UIImagePickerController Apple will probably reject your app, as that is explicitly prohibited (as documented in the link).
Related
I want to add more than 8 buttons in UIAlertView but when I am adding buttons, they are covering each other and not scrolling. The title is also hiding.
How can I resolve this and add some scrolling in the alertview ??
Seems like this kind of question comes up at least once a day on StackOverflow, but if you want to mess around with the various components within a UIAlertView, the short answer is: DON'T.
If you look at Apple's documentation for UIAlertView, within the first screenful of text it states:
Subclassing Notes
The UIAlertView class is intended to be used as-is and does not
support subclassing. The view hierarchy for this class is private and
must not be modified.
This means that there's a decent chance that any mucking around within UIAlertView hierarchy could catastrophically break your app in future iOS release.
So if you want to add scroll bars or bells & whistles, you really should create your own custom UIView (which looks like a UIAlertView, but is wholly of your own creation)
If you have more buttons then UIActionSheet is the best option than using UIAlertView. If you dont want to use UIActionSheet there is always a custom View to your rescue!
You should really rethink your UI if you need more that 8 button in a UIAlertView. 8 button is the maximum the standard alert view can handle.
Either build your own alert view or use a normal view controller with a table view.
Not sure if it's necessary but as an alternative, you can present another ViewController/ModalVC that will have all the attributes that you may require....
Just move ahead with CustomView, Otherwise not possible with UIAlertView to meet up with your requirement :
Reference links :
http://iphonedevelopment.blogspot.in/2010/05/custom-alert-views.html
http://iosdevtricks.blogspot.in/2013/04/creating-custom-alert-view-for-iphone.html
https://stackoverflow.com/a/6965828/434898
If you want to add many buttons you can use a custom implementation for the alertView.
A nice example is FUIAlertView
Or you could use WEpopover and add to it a table view.
I'm looking to create a custom UIView (like the above realtor.com app) so when the user selects send email or something to that effect a little view pops up confirming the action then disappears. Any direction, tutorials or code snippets would be greatly appreciated. Also what is the correct terminology of what I'm looking to do? Please excuse my ignorance on this subject.
Use Custom UIActivityIndicator that you can found in this link
https://github.com/jdg/MBProgressHUD
This is not Apple specific controls. You can create them. The pop up shown in first image is very easy to make. You'll have to use 3 controls to make it.
1) Background UIImageView with the image.
2) UIActivityIndicatory
3) UILabel with whatever message you want to display.
MBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features.......
There is more option that useful for your work, For mor information go to above Link
Why not use something that's already available? Take a look at ZAActivityBar (https://github.com/zacaltman/ZAActivityBar) which handles creating 'toast'-like popups.
It's a part of CocoaPods, so it's very easy to install.
yes you can customize,go throgh below steps
1)add selector to your sendEmail button
2)in that selector function create one view, and add your emailSent image as a background
3)now add this view to mainView simply by addSubView
or for nice than above
1)add selector to your sendEmail button
2)in that selector function create one UIControl of size 480 x320, and add a imageView to it & if you want also can add one ok button
3)now add selector for UIControl, in that selector function just remove your view from sperView
4)now add UIcontrol to mainView
Here you can find the source code for showing toast like android
https://github.com/scalessec/Toast
I have a requirement to pop up a small option-view on clicking bar button item, similar to this image.
How can I achieve this? Any tutorial or link is highly appreciated.
I'm not sure this is available on iPhone but I know that on iPad UIPopoverController it looks so.
Apple Documentation
You can find source code here to create PopoverController on iPhone !
You need to create an UIView and set for backgound you image. In this new view you can add UIButtons to let the user to select an option.
I want to display a view with two text field and a button. I want to pop the view like an alert view. Just like how Facebook is popping up and asking for credentials.
The UIAlertView will accept addTextFieldWithValue:label:, but this is an undocumented API and may cause Apple to reject your app. There was a discussion in the iPhoneDevSDK.com forums about this with some sample code to do the same in an acceptable manner.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/1704-uitextfield-inside-uialertview.html
The way to do this is to subclass UIAlertView and override the DrawRect: method. You can then resize the window, change its color, and anything inside. Hope it works out for you!
Edit: here is a link that i used a while back to give me a basic idea behind it.
http://joris.kluivers.nl/iphone-dev/?p=CustomAlert
I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this?
Can anyone help me ?
Is there any built-in style/layout available or do I need to create a view for same?
Thanks,
Jayesh
You use the inputView property of a UITextField or UITextView. Simply assign it a custom view of your own. Then, when the receiver becomes the first responder, the system will automatically show your custom view as the keyboard. It will also hide it, when resigning first responder.
As far as I know, there are no templates.
I collected a view links about this topic with screenshots of keyboard-layouts + links about the programming-background. The article is in german but the links are all english: http://uxzentrisch.de/custom-mobile-keyboard-design/
Thanks for your answer, Jorge!