cocoa-touch

How do I look at the text value of a label?

Hello I am really getting frustrated now! I have a new problem now, all I want to do is say if lblMessage.Text = "30 Seconds" then do some code otherwise do some other code if (lblMessage.text isEqualToString:@"30 Seconds") { NSString *strPlayerAtTable = [[NSString alloc] initWithFormat:@"%@ at table", ActivePlayer]; lblMes...

MKMapView in a UITableView and editing

I have a UITableView with two sections that needs to be editable. The first section is a few cells with text, numerical and date content that are provided a separate view controller for editing the values. The bottom section is jst one cell that displays a custom cell which has a MKMapView. This cell is used to visualize the location f...

Is it possible to NOT dismiss a UIAlertView

The UIAlertviewDelegate protocol has several optional methods including: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; This would seem to suggest that not all button clicks actually dismiss the alert view. However I see no way of configuring the alert view to NOT automatically dismiss with any...

Order of UIViewController initialization and loading

I'm fairly new to UI programming on the Mac and iPhone, and I've run across something that somewhat puzzles me. A UIViewController has 3 methods that involve the initialization of it and its view: init (and init-like methods) loadView viewDidLoad (delegate method) I'd expect these to occur in the order above. First UIViewController ...

Can't get a translucent status bar

Starting out with a default gray status bar, I'm pushing a UIViewController subclass onto a navigation controller stack and calling [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; during viewWillAppear:. But I get an opaque black ...

cocoa iphone fetchedResultsController sorting

Hey there, I'm working on an app that relies on a set of data that can be sorted in a variety of ways. I've got core-data setup. I have a fetch request that brings in all of the records. I've got a sort button on the left side of the nav controller. It brings up a modal view with table that has my sort options. when you change the ...

Why won't my x-axis show with core-plot on the iPhone?

EDIT: I think my question is better phrased as: How can I have a Y-axis that doesn't start at zero? It seems like the x-axis always gets placed at the y=0, but I would like the x-axis to be at some positive number on the y-axis. Here's a graph with more reular data... I just wish the x-axis was placed at the minimum y-value for the plot...

Prevent disabled UIButton from propagating touch events

My application has two overlapping UIButtons. The top button may be disabled at times. However, in this case any touch events it receives seem to be passed down to the underlying view, which in my case is the other button. What I need is the top button intercepting all touches and preventing them from reaching the bottom button, even in...

Display NSMutableArray in Table View Cell

MY question is how to display arrayData in table view cell? I want to set the table view cell's label text to the 'ename' from the data parsed. Please help me out. I am newbie to Iphone Development... Thanks in Advance - (void)viewDidLoad { NSString *url = [NSString stringWithFormat:@"http://mmabigshow.com/app/get_result_from_quer...

Open source user tracking on the iPhone

Hello, I would like to track certain actions (e.g. how often an app is used) without using solutions from companies such as Pinch Media or Admob. Do you know any open source project, which I could use as a starter for my own system? ...

How to get each pixel coordinates of any shape in iPhone

I am using UIView subclass to draw an alphabet using QuartzCore Framework.Using this code only hollow characters are drawn(By Making the stroke color- blue color).Here I need each pixel position (coordinates) of the character that is added on current view.Please give me an idea how I will get each pixel point coordinates(Only the blue po...

OpenGLES 1.1 and 2.0, supporting both

I have 2 separate renderers, one for 1.1 and another for 2.2 I have a bunch of Items which hold image information and the texture handle generated by whichever renderer I am using. Items are just dumb objects and I don't want to introduce any OpenGL specific functionality into them. The problem is, I need to store their texture handl...

How do I determine the location of each pixel in a square drawn via Core Graphics?

Hi, I am trying to get each pixel point of a Square drawn using Core graphics.Here by making the stroke color black color,I am drawing the Square.Please give me an idea how I will get all pixel point on which this square is drawn. - (void)drawRect:(CGRect)rect { CGMutablePathRef path = CGPathCreateMutable(); CGContextRef ctx =...

Sounds randomly interrupted when starting to play

I'm calling playSoundFromBundle from the code below to play sounds (aif files). I have a sound that does a single click and then a fading sound. Both sounds are in the same file. Sometimes I get two clicks and then the fade. Meaning, click, click...fade. A single click isn't what should play. I'm guessing the sound starts (click s...

Parse data returned from j.mp

Hi, I'm currently writing an iPhone application, that posts a long url to j.mp (bit.ly). It is fully working and posts the long url successfully. But when I want to copy the returned data into an UITextView, I just get some JSON Data. Now my question: How can I parse this data, so that I only have the shortened url? Could anyone help m...

Pre-render UITabBarController views?

I have an app with a UITabBarController that manages some UINavigationControllers, which in turn manage various UIViewControllers. On 3G phones, the first time I view any particular view via a TabBar button, it's laggy, but thereafter, it's snappy. This isn't noticeable with 3GS phones. My question is how can I force these views to pre...

How to set a custom edit-style icon in a UITableViewCell while in edit mode

Is there any way to have a custom edit-style icon (besides the green plus and red minus icons) when enabling edit-mode in a UITableView? I know I could simulate the the edit-mode animation and just move the cell contents to the right and add a UIImageView, but I was trying to avoid that. ...

How to get each pixel position (Coordinate) of a Hollow Character drawn using Core Graphics?

I am using UIView subclass to draw an alphabet using Core Graphics.Using this code only hollow characters are drwan(By Making the stroke color- black color).Here I need each pixel(Coordinate) position of the character.Please give me an idea how I will get each pixel point(Only the black point's pixel value) of the hollow character. Sour...

[iPhone] How to make a zone where user can tap to do a specify action)?

How to make a zone where user can tap to do a specify action)? same below picture: Please help me! ...

superview and parentviewcontroller nil after adding a subview

I think I'm missing something fundamental and so I want to ask the community for some help. I'm building an app based around a basic iPhone Utility Application. My MainView and FlipsideView share some elements so I have created separate ViewControllers and nib files for those pieces. In order to do this I have done the following: 1. Crea...