iOS 10 GMSMapView showing my location icon with white background - gmsmapview

This issue didn't show up in previous iOS versions. But in iOS 10 beta, the user location icon is displayed wrong. The blue dot is showing its frame in a different background instead of clearColor.
Is this an issue with iOS10? Any workaround to set the background color of the blue icon ?
I know we can put a custom icon by setting the blue dot to NO and:
GMSMarker *pointMarker = [GMSMarker markerWithPosition:currentPosition];
pointMarker.icon = [UIImage imageNamed:#"YourImage"];
pointMarker.map = _map;
IS there any other way to set the background of user location to clear color ?

This sometimes happen in the Simulator, I've seen it on older iOS versions.
If this happens on the device then it's a bug.

Related

How to change the background color of keypad in iOS 7

I am using Xcode 5 for developing applications. I want to change the color of keyboard in iOS 7. I want a color like black or blue.
How can I change the color of keyboard in iOS 7?
You can only set the keyboard appearance to any of three listed below using the UIKeyboardAppearance.
UIKeyboardAppearanceDefault // Corresponds to the UIKeyboardAppearanceLight
UIKeyboardAppearanceDark // Available in iOS 7.0 and later.
UIKeyboardAppearanceLight // Available in iOS 7.0 and later.
There is one more constant named UIKeyboardAppearanceAlert but, that is now deprecated. You should use UIKeyboardAppearanceDark instead.
You can't use any custom or undefined color.
So, Use ...
myTextfield.keyboardAppearance = UIKeyboardAppearanceDark;
In iOS 7, since the keyboard is translucent, I was able to accomplish this effect by adding a colored subview behind the keyboard that shows and hides with keyboard notifications.
I created a GitHub project to demonstrate this technique. Keep in mind it only works in portrait orientation right now and obviously only in iOS 7.
https://github.com/meekapps/TintedKeyboard
You can change the color with the keyboardAppearance method.
_textField.keyboardAppearance = UIKeyboardAppearanceDark;
Have a look at the Apple API docs
Per your comment of wanting a custom color:
You could do this... Just use the normal keyboard, then observe UIKeyboardWillShowNotification and UIKeyboardWillHideNotification so that you can show a color UIView behind the keyboard.
It would be hacky, but it would work because the default keyboard is transparent to a degree on iOS 7.
Good luck.

How to get this background strip in IOS 6?

I have used this background in older version, after updated to iOS 6.0 I am not able to find anywhere in IB. I stack overflowed and used this
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
Still it is giving white color, What should I do now? Do I need to set image for this?
This function groupTableViewBackgroundColor deprecated on iOS 6. Please set color or image in Background mode
please see the SO answer

application icon change its background color at iphone device

I have an icon.png which has white background with a blue faced cartoon.
Something like the face of this image.
But, when i see it in simulator/device than its background color change from white to black with blue face at always.
Does iphone change it to provide the aero effect?
Ehm no, it doesn't... Are you sure the icon.png has a white background and is not transparent? And what are you using this for? Is the icon.png being used in your app itself, or is it the icon of your application?
If the icon.png is transparent, it might be caused by the background color of the UIView you are using it in. I suggest changing the icon.png or changing the background color of the view.
Thanks #Anstwan van Houdt. After your reply, i search iphone app icon against transparency and found below this link. It states that if we make a icon transparent that it would give black background color by default.
So, better we give it.

UIActivityIndicatorViewStyleWhiteLarge not appearing in iphone 4

I tried to create an activity indicator using the following code
CGRect frame = CGRectMake(160, 160.0,40.0,40.0);
progressIndicator = [[[UIActivityIndicatorView alloc] initWithFrame:frame]autorelease];
[progressIndicator startAnimating];
progressIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
progressIndicator.hidesWhenStopped=YES;
[progressIndicator sizeToFit];
[self.view addSubview:progressIndicator];
This code is working correctly in all devices except iphone 4(ie. indicator not showing in iphone 4). For that reason, i was forced to change the UIActivityIndicatorViewStyleWhiteLarge to UIActivityIndicatorViewStyleGray so that activity indicator is shown in all devices. Can anyone explain me why this happens?
The large white indicator has no drop shadow on ios 4 like it does on ios 3. I'm not sure why apple removed the shadow, but the indicator is there. You just can't see it on a white background anymore. Use the grey one, or put a background behind it.
I opened a ticket against this a week after iOS 4 came out and have yet to receive even an acknowledgment of the issue. It works in iOS < 4, broken in iOS >= 4. Doubt it'll be fixed any time soon.
hi
i have the same problem as yours
however, actually the indicator is shown.
It may seem to be a hardware problem.
I guess that the retina display can not display the white display properly with white background.
because when the indicator was displayed on the black background, i could check that it worked.
I hope it may help you

iPhone UIDatePicker Gradient - What are the colors?

I'm putting in a UIDatePicker in a UIView and I can see that the UIDatePicker has a border that is some kind of a dark color on the bottom and it gets lighter as you get higher. I want the containing UIView to use the same colors so that the UIDatePicker flows with the rest of the view and doesn't stand out.
I can put in a gradient in the containing view, but I don't know what colors to use! If anyone could suggest them, I'd appreciate it.
mj
Light Color (Top): RGB: 145,146,154
Dark Color (Bottom): RGB: 30,31,44
Use Digital Color Meter that is built-in to OS X (in the Utilities folder).
The colours displayed in Xcode don't always match those when the app is viewed on an actual iOS device, especially for UIDatePicker object.
What I've found useful is the following:
Run the app on an iOS device with your objects on screen
Take a screenshot (hold down the home button and the power button together)
Email that screenshot to your Mac
Use the OS X Digital Color Meter on the screenshot to get accurate RGB values
Remember to check both retina and non retina devices for colour matching.