uikit

Custom UITabBarController

Hi All, I want to customize the look and feel of the tab bar of a UITabBarController. I want to change the colors, the way the icon looks when they are selected, and also, most important of all, I want to reduce the size of the custom toolbar. My approaches for this and the hurdles in it are: A) The first solution which came to my min...

Can I remove the mask on interface orientation animation?

Hi I am developing an iPad app which starts with a graphical menu. When the user rotates to landscape, the user sees the same menu, but it shows more of detail in the width and less in the height (natch). However, when the rotation animation happens, the default black masking is seen around the edges. Is there any way of switching this...

Transparency between UITableViewCells

Hi! I want to have transparency between UITableViewCells. Space between the cells. I user custom created cells and for setting a background i use this code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCell = @"CustomBookingCell"; currentBooki...

Close a series of views in a for-loop [iPhone]

I need to close a series of views and don't wont to write code for closing them one by one. Here's a sample code to illustrate what I mean: //This is the method for placing the views. It's called at different times at runtime: - (void)addNotePic:(int)number { int indexNumber = ((110*number) + 10); UIImage *image = [UIImage imageNamed...

How to draw an NSString with an specific height on to an perfectly matching bitmap?

I have an NSString like @"Hello World" and want to convert that into an bitmap with exactly 20 pixels height. The width of the bitmap should match the width of the text. I know there are some NSString UIKit additions that can draw text, but I don't know how to draw the text with an bounding box of exactly 20 pixels height (text fits per...

How does the retina display affect the size of the underlying bitmap of an UIView?

With the retina display, does a UIView with a frame of 100/100 points actually have a bitmap of 200/200 pixels? ...

How to obtain a CGImageRef from the content of an UIView?

I have an UIView where I was drawing some stuff inside -drawRect:. Now I need a CGImageRef from this graphics context or bitmap of the UIView. Is there an easy way to get that? ...

Can I set the scaleFactor of an UIView when I want my drawing code in -drawRect to not waste too much memory?

I am drawing something into -drawRect of an UIView, and in this case I really want a certain amount of pixels. With the retina display, my view has a scaleFactor of 2.0 and when I draw something that is supposed to be 10 pixels heigh, it's actually 20 heigh. Is it okay to set the scale factor back to 1.0 to get a 1:1 mapping between poin...

How to recognize diagonal swipes on the screen?

Hello, I'm using UISwipeGestureRecognizer successfully to capture and action when gestures on the screen are made with single or multiple touches in Up, down left or right directions using the standard tools. However what I really need to do now is have the device recognize diagonal swipes in the same way. Does anyone have any ideas wh...

UIAlertView rotating interface with keyboard visible

I have a UIAlertView that has a text field. So when it shows up the keyboard shows up too. To get the alert view in a better place I set a transformation to it: CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 180); [alert setTransform:myTransform]; This works fine, as long as the interface orientation does not ch...

How to recreate the UITabBarItem image filter?

Hi, I'm writing a custom UITabBar replacement, and I would like to know how to recreate the filter that the built-in implementation does with the UITabBarItem image - that blue shining on selected tabs and gray gradient on unselected ones. I guess it's a matter of using the source image alpha value as a mask and overlay it with a pre-ma...

Use SCAN BARCODE on UIWebView ? (Ipod Touch)

Hi, I have bought a Scan Bar Codes (hardware external) for my ipod touch 2g, i am developing cocoa app on xcode. I have implemented a webview but i cannot use him, in UITextField of my webpage. I want launch a webpage (by UIWebView, safari), google.com and i push my button of my scan when the virtual keyboard appears. This action will...

iPhone / Objective C - Communication between ViewController / best way to implement?

Hi, I'm doing a iPhone app. I created my own SwitchViewController Class (linked to the App-Delegate) which actually just changes the various other Views / ViewControllers (e.g ViewA, ViewB) while the app is running. When I know recieve a tap-gesture in the ViewController-A I would like to trigger a method (eg. switchViews:(id)sender) ...

Is there a faster way of doing this?

For a little practise fun project I did this: I added a grid of UIView instances to an view controllers view which work pretty much like an number segment LCD (but those LCD screens that have squares and can show pretty much anything, not just numbers...with low resolution though). There are 8 * 8 views on the screen (so 64 views, in ...

Handling UITextView Data inside a Table View

Hey folks, i have this MainViewController, which is a controller for my table view. Whenever I press a row on the table view i go to my employeeViewController. Which is a normal view with a Text View inside of it. So my hierarchy looks like this: -Window --Navigation Controller ---Navigation Bar ---Main View Controller ----Table V...

EXC_BAD_ACCESS - NSZombieEnabled is not showing anything.

I am getting an EXC_BAD_ACCESS when trying to push a view controller onto the navigation stack. When enabling NSZombies, I do not get any extra information for some reason, and I can't work out why. I'm pretty certain I don't need to use CFZombies. Here is the code that seems to be causing the issue: - (void)tableView:(UITableView *)tab...

Getting the frame / bounds of a view

Another newbie question: If I have a UIViewController with a navigation bar visible at the top and a visible toolbar at the bottom, how do I ask the view controller for the coordinates (frame, bounds) of the "visible" area of the view? (self.view.frame and self.view.bounds return null)... ...

How to implement utility application with navigation based flipside?

I would like to create an utility application that has a navigation based flipside, or "info", view. What would the most efficient way to accomplish this be? I think that i 'simply' need to make a root view controller for the flipside view...but i really only understand that conceptually...not so much how to go about it or, at least, i...

NSBundle may not respond to +loadNibNamed:owner:options:

I am receiving the above warning in my code. I looked up the method in the documentation and found it was declared in UINibLoading.h. I tried importing this, but the warning didn't disappear. ...

Is it possible to stop UISearchBar from scrolling within UITableView?

For example: The UISearchbar within UITableView like of the iphone Address Book app scrolls with the the names. Is it possible to stop it from scrolling so it stays on top? Thanks! ...