Hi, I'm working with the iPhone SDK and am trying to gather and store a list of all addresses within a given radius (the radius will range from .25 to 19.75 miles). understandably the larger radius would produce a large amount of results, but for now I'd like to at least be able to do it for a mile or so.
The end result would be to have...
hi i have an array of objects which need to be sorted (alphabet on name)
ArtistVO *artist1 = [ArtistVO alloc];
artist1.name = @"Trentemoeller";
artist1.imgPath = @"imgPath";
ArtistVO *artist2 = [ArtistVO alloc];
artist2.name = @"ATrentemoeller";
artist2.imgPath = @"imgPath2";
ArtistVO *artist3 = [ArtistVO alloc];
artist3.name = @"APh...
I have the following in the header:
@property (nonatomic, retain) UIView *overlay;
And in the implementation:
@synthesize overlay;
Then:
UIView *tempOverlay = [[UIView alloc] initWithFrame:CGRectMake(160.0f, 70.0f, 150.0f, 310.0f)];
self.overlay = tempOverlay;
[tempOverlay release];
Isn't the tempOverlay variable above unnecessa...
Hi,
I'm working with NSXMLParser that parses a xml document. You have to set the delegate which we would be called every time the parser finds an element. The examples I've looked at all set the delegate to be the same class that's createing:
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:filename];
[parser setDelega...
Hi Guys,
Is there a relatively easy was to include a 3D animation into an iPhone app? We have the animations already made up for another project and our client has asked if they can be placed inside an iPhone app. We could perhaps include a low-res looping video of the animation (it's just a 3D component rotating on a single axis), or w...
Hello stackoverflow,
Have a slight problem. Trying to post XML to a server. To do this, I have to encode the XML string in URL format.
NSString *encodedString = [NSString stringWithFormat:@"xmlValue=%@",[post stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding]];
That's what I have and it works for all the characters E...
Hello,
I am having trouble with my game and was wondering if anyone can help?
I am loading an overlay image on the screen when a user clicks on an answer in my quiz game, the image is of either a tick or cross to indicate if the answer was correct. The image is being loaded in a new thread.
The problem is that the image does not appe...
note: This is an expansion (and clarification) of a question I asked yesterday.
I am conducting a research project where I want to record all of the user's touches in the iPhone app. After the experiment, I will be able to download the data and process it in either Excel or (more likely) Matlab and determine how many times they clicked ...
I'm interested to know if I can have access to all the libraries, ide, etc for the iphone/ipad/macos without paying the 90 bucks(for learning purpose).
Do I have to pay to have access to everything in order to start developing? I'm not talking about the istore by the way. I know that there is a fee for that.
Thanks.
...
When I try to get the bounds of the main screen with [[UIScreen mainScreen] bounds], it returns null. I've tried with [[UIScreen applicationFrame] bounds] as well, still returns null. The strange part is; if I do "NSLog(@"%@", [UIScreen mainScreen]);" it prints out the correct bounds, albeit I have no idea how to parse it, if it's even p...
In Objective-C, is it possible to access instance variables and methods from within the scope of a static c function? I feel like there is probably a simple answer to this that I'm overlooking, but I'm still fairly new to this language.
Consider the following stripped down code:
@implementation MyObject
static int ammoHitSensor(cpArb...
Hello,
I have a NSTextField that gets updated when my app searches through an array:
for (NSString *file in fileinDir)
{
processedFiles = processedFiles + 1;
NSArray*filesinDevice = [fm contentsOfDirectoryAtPath:[[dict objectForKey:NSWorkspaceVolumeURLKey] path] error:nil];
[progressLabel setStringValue:[NSStr...
How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well.
...
Hi all, I have a view, with a navigationBar on top. I add a subview in this view. My subview is a view with a toolBar.
SecondView.frame = CGRectMake(0, 418, 320, 42);
[principalView addSubview:SecondView];
[principalView bringSubviewToFront:SecondView];
After that, the subView is in my principalView, at the right place, but when I c...
Hey
I'm having a problem with a string creation and comparison that seems to lose it's contents. Currently I have this:
switch (creditPos)
{
case 0:
[creditCart.faceImage setImage:[NSString stringWithFormat:@"%@credits_face1.png", _director.platformPrefix]];
break;
case 1:
[creditCart.faceImage setImage...
I have to sort an array of dictionaries but I have to order by an object in the dictionaries.
...
Hi,
it is possible and rather easy to create a NSPredicate from a string that uses the contains operator, like this:
[NSPredicate predicateWithFormat:@"name contains[cd] \"Hello!\""];
I would like to create this predicate programmatically, as it can be done for comparisons with the NSComparisonPredicate. Any ideas about this?
My mot...
Is it possible to view the exact code generated by @synthesize?
...
I was able to save an NSMutableArray of custom objects to NSUserDefaults by implementing NSCoding in the custom class. However, now I want to save an NSMutableArray of these arrays. The compiler complains when I try to do this. How can this be done?
...
I have a method that brings in an Enum value as an argument.
enum {
UITableViewCellStateDefaultMask = 0,
UITableViewCellStateShowingEditControlMask = 1 << 0,
UITableViewCellStateShowingDeleteConfirmationMask = 1 << 1
};
There are four possible values:
Only UITableViewCellStateDefaultMask is t...