uikit

UINavigationController Offset

Hey, I have a UINavigationController which appears at an offset of 20px. This is the exact problem I'm having: http://forums.macrumors.com/showthread.php?t=761616 But I can't seem to figure out what the right way to solve it is. Thanks, ...

Batch Insertion & Deletion + Reloading old cells = Exception

So I have a UITableView in which I am doing batch insert/delete/reloads into. Every once in a while, the list data changes, so I batch update the differences in the list. I'm basically inserting new rows, deleting rows that are no longer there, and reloading rows that exist in both the old and new data. For example: Before, the list dat...

Does Doodle Jump use UIKit or OpenGL ES

Hey, looking at the iPhone app Doodle Jump I am not quite sure what kind of technologie Lima Sky used to draw the graphics. Is it UIKit, CoreAnimation, OpenGL ES or a combination. All Some hint for UIKit or some sort of combination is the theme selector at the bottom of the main menu, which acts like some kind of a UIControl. Somebody...

Help with navigation Controller, windows & subviews!!

Hi, my first xib contains a ScrollView with a springboard like interface in MainWindow.xib: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { navController = [[UINavigationController alloc] init]; [navController setNavigationBarHidden:YES]; [window addSubview:navCon...

Draw background color in a UILabel rect only where my text is.

I need to create a custom UILabel to display some dynamic multiline text. The text color is white on a black background. But the background should only be visible right behind the text to simulate the effect of an selected text area. I started with subclassing UILabel and overriding drawTextInRect to do my own drawings. - (void) drawTe...

MPMoviePlayerController and local m3u8 files

I'm trying to load an m3u8 file that's saved to the local filesystem, but the MPMoviePlayerController refuses to play it, citing "m3u8 is not a supported media type". However, the same m3u8 file plays perfectly fine when I'm accessing it on a remote media server. Is there any workaround that can be used to play local m3u8 files? ...

CALayer mask problem

Hi everybody! I am trying to apply mask to my UIView. I have method on my UIView: - (void) applyMask :(CGRect)maskZone :(NSArray*)gradientColors :(CGFloat*)gradientLocations { CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();. CGContextRef context = CGBitmapContextCreate (NULL, self.bounds.size.wi...

Record video with custom sound on iPhone?

Is it possible to record a video on iPhone but with some custom sound instead of the one captured by microphone? ...

null productIdentifier AND invalidproductIdentifier (In-App Purchase)

I have one product registered and cleared for sale in iTunes Connect. I request the CORRECT product id but the SKProductsResponse object returns null productIdentifier and null invalidproductIdentifier. What could be the problem? TOTAL PRODUCTS REGISTERED: 1 PRODUCT IDs MATCH: YES CLEARED FOR PURCHASE: YES SDK: iOS4.0 DEVICE OS: iOS4....

Creating non-square buttons with highlights in iPhone app

I want to create a "play" button that has a play image (triangle) and highlights on touch. I kind-of figured out how to do this, but it's not really right. The frame I create for the button is square, and the entire square button lights up when touched. Instead, I want only the triangle to get highlighted, similar to how iPod buttons wo...

Need color to build a custom UIButton to put inside a UIBarButton.

I need to build a custom UIBarButton. Most of what I have done works except that I can't get the color of my button to match the iPhone UIBarButton. How can I match it? Here is what I have: (mostly ripped from Elements sample project) UIButton *localFlipIndicator=[[UIButton alloc] initWithFrame:CGRectMake(0,0,50,28)]; self.flipIndicato...

How to add subview ontop of UITableView?

I have a UITableView that gets populated with data if there is a live network connection. When there is no connection I would like to add a view to the current view that will say No Internet Connection. Similar to the Photos app when there are no synced photos. I am not sure how I can accomplish this. ...

How do some AppStore browser apps implement features such as "Open in new tab" menu, loading progress, etc?

Hi, There are web browser apps in the store which do many things that seem like they use private API calls to me. Things such as: Override the context menu for a link to add a menu item for "Open in new tab" (http://stackoverflow.com/questions/2078039/how-to-add-an-option-to-the-popup-actionsheet-of-iphone-safari) Reporting loading pr...

NSString fails, app crashes trying to NSLog the NSError

What it says on the tin. All I want to do is save an NSString to a .txt file in my Documents directory so it can be accessed by the user. This is called in applicationWillTerminate: NSError* err; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths object...

How to Dismiss 2 Modal View Controllers in Succession?

I have 2 view controllers presented modally. A presents B which presents C. When I dismiss C I would like to dismiss B as well. But I am not sure how to do this: Dismiss C: [self dismissModalViewControllerAnimated:YES] //[delegate dismissB] //this doesn't work either when i create a delegate pattern Now I am left with B. How can I...

presentModalViewController not working properly

I have 3 views. I want to do the following: A presents B modally A dismisses B A presents C modally I have setup a delegate pattern where A is B's delegate. This is how I am presenting and dismissing in B: [delegate dismissB]; //this is just [self dismissModalViewControllerAnimated:NO] [delegate presentC]; //this is just [self prese...

Adding subviews when Device orientation is face down or face up

Hi, in my project both landscape and portrait orientation is supported, i have a controller view to be added as subview when tap on button. My problem is if user keep device in Face Up orientation or faceDown Orientation and press button weather i have place subview in portrait or landscape mode...? Thanks in advance ...

Corners from CGContextAddArc are too dark

Hey all, i have little problem with my code. I want to add a footer to a uitableview-section, but that's not my problem. My problem is that i want to have rounded corners on my footer-view, but not on all corners, just the two on the bottom. But the corners are just too dark and i don't know why... Heres my code: - (void)drawRect:(CG...

Hide a UIBarButtonItem when in edit mode.

I have a UINavigationController with a UITableViewController which has and two UIBarButtonItems: - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.leftBarButtonItem = self.editButtonItem; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd targ...

Extend UIButton in monotouch

Hello, i'm tring to extend UIButton class to add my id property. How i can do this? Problem is to create a button you use var button = UIButton.FromType(UIButtonType.RoundRect); so, if i've public class MyButton : UIButton how i can create my button? thanks. ...