Default Color for UIAlertView - ios

I created a custom popup using UIView that behaves like UIAlertView. Currently, its backgroudColor is LightGray. But I want to give it exactly same look as the standard UIAlertView. Please suggest how can I acheive this functionality? Thanks.

give your view's background color #DCDCDC and opacity 20%.

Related

In the alert view ,how to change background color & display bottom of view?

I want to change the UIAlertView view background colour and change displaying position of alert view.
Is it posible ?
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.
For more information about appearance and behaviour configuration, see AlertView.
OR
for changing background color u me used
WCAlertView
SCLAlertView
OR
u can refer this post iOS SDK: Creating a Custom Alert View
No it is not possible. You can make custom AlertView for that. Take a look at this https://github.com/wimagguc/ios-custom-alertview.

How to update default badge UI appearance in UITabbarController?

As displayed above, default badge appears in red and white color. Can we change its color scheme and customize that view?
The only solution I found was, creating entire UITabbarController as custom control. Can't I use default control and only update badge or provide custom UI to badge?
You could just create view(UIButton for example.) with the color (or background image) and text you want and add that to the tabbar on the place you want. But I think that would be some kind dirty implementation... Coz, you need to calculate the frame according to how many UITabbarItems you have. Otherwise, custom tabbar controller is the way to go :) I don't think customization of the default badge is possible. Good Luck!
I couldn't find any way to create custom badge for UITabBarItem. The only way to achieve this is to use custom UIButton/UIViews.

Displaying 2 columns in UIActionSheet

Is something like this possible? How?
Image made with some simple Photoshop.
It is not possible with the default UIActionSheet, However you can try custom control like
TweetBot like UIAlertView and UIActionSheet replacement for iOS
Create your own view controller with the desired view layout and animate the view when presenting. It's much easier than risking changing the default UIActionSheet look and feel.

UISwitch with custom image

I need to customize UISwitch by changing background color as well as knob(holder) image as shown in below image.Is it possible to customize UISwitch without app getting rejected.
Thanks in advance
There's an onTintColor property you can set on UISwitch. If you need to change the handle image as well, have a look at DCRoundSwitch.

How can this bar be done in iOS?

I really like this popup with the additional functions for the selected listitem under:
But have no idea how this is done. Does anyone know how to do it or has a guide or some keywords for me?
Here is another example:
You could achieve a similar effect by adding a UISegmentedControl with <1 alpha to the view when a cell is selected - hope this helps :)
The keywords to look out for are:
UIToolBar or UISegmentedControl - both using some custom drawing or appearance modifications. Well, you could just as well create an entire custom UIView containing a bunch of UIImageView's.
Additionaly, for that shadow have a look at CALayer's shadowOffset, shadowColor, shadowOpacity, etc. ... properties.

Resources