iphone - Making a MKMap black and white - objective-c

There's a thread that asks the same thing, Black and white overlay for an MKMapView
but I have my doubts if the answer will work, no-one claimed to get it done.
A filter is a function applied to the pixels of an image, so making a Overlay with a monochrome filter will only be applied to the Overlay, not to the map.
Am I right?If not please tell me so, If Im right do you know any other way to make a MKMap to appear in B&W?
Thanks.

Related

Custom TabBarItem menu IOS 7

I'm trying to make an UITabBarController like this:
No matter the device width (whether it is rotated or not) the buttons should not be stretched and the leftover space should be on the right side.
My questions:
Is this possible with the UITabBarController?
For the whitelines inbetween the buttons I am planning to use an unclickable UITabBarItem with an image. Is this the best way to do this?
With this tutorial that I followed I am getting this result:
2 problems here ^, whilst my background.png is 320x49, the selected image (68x49) has padding. This should not happen, both pictures have the same height?
The second problem is that the button/image has trailing space, and I want it sticked to the left side, as in my first screenshot. How would I accomplish this?
I don't expect anyone to post code, just merely a push in the right direction as I'm totally lost on this.
Check this library, you can customize the UI in interface builder with consstraints and get what you want.

Custom Titlebar in a Cocoa Application

I need to create a (very) custom titlebar in a cocoa app. I read about the INAppStoreWindow library, but it seems it doesn't have the feature that I need. So here's what I have need to do (see image for clarification):
My titlebar is the thing between the green and red circle
The text (Text1 - Text3) are all images
The black circle with the exclamation mark is also an image
The grey area below the title bar is a webview. It expands from the left border all the way to the right edge of the reddish sidebar. (This is actually where why I think that the INAppStoreWindow won't work, as I cannot specify a width for the title bar)
The images should have an Action
Text1 through Text3 as well as the black circle load some URL into the webview
Red circle closes the app
My app has no borders and no shadows. Right know in order to be able to move the app I drew a Box element at the top where the title bar should be. I think I can draw something in it as well, but as I'm very knew to cocoa development here are my questions:
How can I draw some images in the Box element?
Is there a better element to draw the titlebar in?
I know that are two questions, but they are closely relatated. It's generally: How to draw a simple titlebar like this?
As the problem inside the titlebar is the same for every item I need to draw (they are all images) I belive there is a quite simple solution for that, but because I lack the experience of how to solve this I'd need your help. You can also point me the the right direction in the comments and I'll answer this question myself after I've got it right.

MKAnnotationView not drawing transparent PNGs properly

I am having trouble getting my custom MKAnnotationView to render with proper alpha blending on its edges. As you can see from the following screenshot, the red and green dots have an ugly black edge that does not blend into the background, but the system-supplied user location (the blue dot, barely visible) does not.
The image is a transparent PNG and I have confirmed it's not the image's fault as it renders properly elsewhere.
I have set opaque = NO on the MKAnnotationView but it had no effect.
Am I missing something?
Ha, well it went away on its own. I'm honestly not sure what I did but I wasn't even worrying about it, changing some other stuff around and all of a sudden it renders properly now.
*shrug*

Dim part of MKMapView

I have a label that overlays on an MKMapView. The only problem is, in some parts it is not totally readable, as the map is in satellite imagery. Also, my map view zooms in the whole way, it focuses on a shop.
I looked at the new map application for Apple and have found that they dim (put a slightly black shadow) over the map region where the label is around. Therefore the label will be slightly more visible and outstanding.
Here is a picture of what Apple does, look at the label, around it you can see the map is slightly darkened/dimmed:
Do you have any ideas on how I can add a shadow/dim the map view. Also, a bit of sample code wouldn't hurt, thanks!
You can use gradient overlay, with transparency and add the UILabel into that gradient overlaid UIView.
Useful link to get started : http://mrohs.com/2011/overlay-with-gradient-and-transparency

Weird black corners at edge of Grouped UITableView

I have an UITableView in my application, which is in an UIView that has it's background colour to the Scroll View Texture thing. This is all in an UIViewController. It works all nicely and stuff, but I get these fugly black corners around my table view edges:
The Background colour of the table view is set to the clear colour, and those squares even appear in Interface Builder. Any ideas on how to eradicate these evil UI blemishes? They make my UI look like something that was thrown together in 3 minutes, even when I spent more than a week designing my entire UI. It makes me want to punch UITableView in the face, too.
Quite strangely, setting the background to clear in code seemed to solve it for me. It is a really weird issue, and I submitteda bug report to Apple about this, although their bug reporter needs it's own bug reporter.
Also make sure the background color is not just clear color, but that opaque is NO.