I have a MKMapView inside a UITableView as a custom cell (don't ask ;) - don't know if it matters really), for which I register a regionDidChangeAnimated delegate method. This method gets called three times when the UITableView is loaded - once with the actual region and then two more times with a region that is way off. In the simulator...
Hello all, I'm newbie in iPhone Application Programming. I can't get value from XML file and display it in UITableView. I need to get the name value of animal. How is the simple way to parse XML without attribute? I've been read NSXMLParser Documentation but the data is not displayed in my UITableView. Here is my XML file :
<?xml versio...
Hi have a problem when trying to use shark for profiling my iphone app.
it worked a few times (no idea why) but most of the time, i see my iphone in the list of profilable devices, but it's status is set to -?- and i cannot select it for profiling
does someone know this issue and how to resolve it?
...
hi!
os i figured out how to use the -mthumb and -mno-thumb compiler flag and more or less understand what it's doing.
But what is the -mthumb-interlinking flag doing? when is it needed, and is it set for the whole project if i set 'compile for thumb' in my project settings?
thanks for the info!
...
Hello,
I have my data in a NSDictionary object where the keys are CGPoints converted to NSValues and the objects are UIColors. Here's the method I'm using to return an object from the dictionary:
- (UIColor*) getTemperatureColor2 {
NSDictionary* temperatureColorMap = [Weather getTemperatureColorMap];
for(id key in temperatu...
In iPhone applications you can catch touch events through the UIEvent and its associated set of UITouch instances, but this happens at Objective-C level. What I am looking for is a way to get this information at a lower level, in C code (no Objective-C involved), and in particular I'm thinking of Core Foundation data structures, similarl...
I have 2 or 3 views in my iPhone application where I have various pieces of functionality that use delegates. In all cases the delegates are assigned to "self", responding specifically to that view's actions and interacting with instance variables.
However, if I do something that takes a bit of time with a delegate, and leave the view, ...
I'm trying to save the kABFirstNamePropert, kABLastNameProperty and kABAddressProperty all saved into an array for recall later, I'm just not getting it, can anyone lend me a hand or point me in the right direction? Thanks. I'm a super NOOb on this.
For the naming the strings:
// setting the first name
firstName.text = (NSString *)ABR...
My iPhone app has in App purchasing. The app is a reference work and for very specialized chapters the user can purchase the extra text by tapping on a row in a UITableView which has the chapter title and the notation, "touch to unlock". This brings up an alert view. If the user taps YES the app goes out to the app store confirms paym...
I'm brand new in iPhone animation feature. I wrote a simple testing program to spin a red rectangle; however, the animation doesn't act at all. What's wrong with my code? Thanks a lot...
//.h
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#define DegreesToRadians(X) (M_PI*X/180.0)
//.m
- (void)viewDidLoad {
[super viewD...
in my MainViewController implementation, I need to access variables from two different classes. one of the classes is the AppDelegate and the other is the FlipsideViewController.
the way I accessed these was through this code:
-(void)someMethod
{
MyApplicationAppDelegate *appDelegate = (MyApplicationAppDelegate *)[[UIApplication sharedA...
Hi, I'm using ASIHTTP and trying to perform a GET request for a site:
NSURL *url = [[NSURL URLWithString:@"/verifyuser.aspx?user=%@" relativeToURL:@"http://domain.com"],userName retain];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setTemporaryFileDownloadPath:@"myfile2.txt"];
[request setDownloadDesti...
We're using UIGetScreenImage to capture 3-6 images per second and saves them to disk. However, we are looking for a way to capture images at a faster rate. We've noticed some implementations that appear not to use UIGetScreenImage (we know this because they're overlaying controls in the preview that isn't captured on the image) and they'...
Simple question:
I have a large string that I want to write to a file in the docs folder for an app. How do I do a simple file creation/write?
...
Hi.
I am new to iphone development. I am "old School" - I was tought to use Procedures etc. when programming. Everything is object oriented these days but my style is still as its always been. Please bear that in mind. My project is tiny and really just a proof of concept.
The program below works on a timer - every 30 seconds it will r...
I inherited an OpenGL iPhone app code which has some large PNG files (say, sunshine.png, 10,000 px by 80 px) and a corresponding PLIST file for each png (say, ImageData/sunshine.plist).
The trouble is, when I replace the PNG files, the app doesn't pick them up, apparently because it doesn't really read the PNG, just the corresponding ...
Hey there!
I'm trying now for quite a while to optimize the framerate of my game without really making progress. I'm running on the newest iPhone SDK and have a iPhone 3G 3.1.2 device.
I invoke arround 150 drawcalls, rendering about 1900 Triangles in total (all objects are textured using two texturelayers and multitexturing. most textu...
Alright, I have my code, and I believe I have narrowed down the crashing bug to one section. Upon the view loading, my code loads the NSUserDefaults and pulls the string out of them. It then works with teh string. The problem is, I'm not sure how to pull the string out.
Here is the relative code:
NSUserDefaults *prefs = [NSUserDefau...
Is this possible?
I currently have my iPhone registered for the developer account at my company, and was wondering if I could start my own account and register my phone with that one, too, so I can test my own applications.
Any information would be greatly appreciated. I couldn't find anything on Developer.Apple.com
...
I am writing an app which will display articles at a membership based website.
We want the app to be able to read and display articles that are set as "members only" - even if the app owner is not a member.
So I want to be able to login without showing the app user any user or password info.
When I try to access a members only a...