iphone

sectionNameKeyPath through multiple relationships

Hello all, I am working on an app that uses Core Data and an NSFetchedResultsController. The model setup is like this: /-----------\ /-----------\ /-----------\ |Part | |Kit | |Source | |-----------| |-----------| |-----------| |name | |name | ...

Heading does not update properly unless compass is started on iPhone 3gs/4g

I have a subtle bug that I'm trying to resolve regarding getting updated locations on the iPhone. Under "normal" conditions, the heading updates come in perfectly fine from the location manager. However, on reboot of the phone or killing all processes on the phone, the heading does not update properly. I always get a -1 for heading. ...

share my iphone app for testing

Hi, I'm writing a new iphone app and want to share it with a couple of friends for testing and general feedback and sign-off. Is there a way I can do that? They are located in a different state and they don't have a mac either. Any ideas on how I can go forward? Thanks, Kalyan ...

How do I query Core Data to return the nearest XX objects to me?

I have populated a Core Data database and need to query it based upon my users location. We use similar code at the backend of a webservice as a UDF and return the distance as a column, but we now have a requirement to cache some of this data for offline use. I know CLLocation has a distanceTo method but is this going to be efficient wh...

Iphone - Load image from camera roll to UIImageView without UIImagepicker

Hello. Is it possible to load the last photo from camera roll to UIImageView without using a UIImagepicker? I mean retrieve the path to the file or something like that. Thankz :D ...

Rotate UIView using UITouch

I have a question on how I should approach rotating a UIView with touch based events. Quite simply, I want to rotate a UIView around an anchorpoint, depending on where I touch on and off within that view. Imagine a volume knob on a hifi, which you turn with one finger. I've built a rotation method using CAKeyframeAnimation which carrie...

iphone: coding a data compression or zipping agent ?

I'm creating a simple service for uploading photographs from an iphone to a web server. However, before the requests is sent, I want the app to compress the pictures (custom format or otherwise) in the background before sending it. Any pointers on how I could go about doing this? ...

Is this undefined behaviour with Objective-C properties?

I had something like the following code in a project I recently worked on. @interface DetailsViewController : UIViewContoller { UIView* headerView_; } @property (nonatomic, retain) UIView* headerView; @end @implementation DetailsViewController @synthesize headerView = undefinedVariableName_; // ... @end undefinedVariableName_ was n...

iPhone/iPad application storage

Hello all, So as a learning exercise, I am trying to make a simple file browser that interfaces with a file storage mechanism. (Think dropbox or box.net) I want to add a feature that would allow the user to flag a file for local storage so they could view it when they were not connected to the network. Is there an apple API that allo...

Iphone offline render of avasset track-- how to get packet size?

Does anybody know how to pull the max packet size from an AVAssetTrack? Or an AVAsset in general? I'm trying to set up an offline rendering audio queue by reading directly from the ipod assets, and I'm stuck trying to figure out how big to make my render buffer. Thanks! Will ...

parsing date works on simulator not iphone??

I have the following code to parse a date from string: NSString * str = @"8/13/2010 1:59:00 PM"; NSDateFormatter * dateFormat2 = [[NSDateFormatter alloc] init]; [dateFormat2 setDateFormat:@"MM/dd/yyyy h:mm:ss a"]; NSDate * orderDate = [dateFormat2 dateFromString:str ]; but orderDate is always coming up null, what am i doing wrong ? Wh...

One UIViewController with many UIViews

Hi there, I'm creating an app with one UIViewController and many UIViews. I have MainViewController with a UIView underneath it that displays when loaded up and a few other UIViews all in the MainWindow.xib. How do I go about switching from one View to the next? Update: Thanks for the reply. I have added MainViewController to my app...

how to find which objects are selected:TRUE from 64 buttons labelled b1, b2 etc...

Hi, I have a project where there are 64 buttons, you have to click certain ones, then click 'done'. If you clicked the right ones, you get some points, and those then need to disappear. I have let the user keep track of which buttons are pressed by doing sender setSelected:TRUE. The first bit is all working fine, but I'd like to be abl...

Refresh iPhone For progressbar

How would i show that the progress bar is working there is no Refresh() in objective-c like there is in .net what would i use for example contactprogress.progress = 0.5; StatusLabel.text = @"Status: Address Found"; How would i refresh the view to show that the progress has changed & show user the StatusLabel status? Thanks Mas...

calling function in objective-c ?

Hello all, let's say in a project there are 1.h, 1.m, 2.h and 2.m if i have a function inside 2.m how can call it from 1.m Thanks Bob ...

Identifying what UIControlEvents was triggered by UIButton (or other widget).

I have defined the following method: - (IBAction)actionPerformed: (id)sender { ... } and registered it with several widgets (UIButtons mostly) on a view. I'd like to log a message telling me who triggered which UIControlEvents, e.g. NSLog( @"The following: %@ was triggered by %@\n", <control events>, <button identifier> ); I don't ...

Good Cocos2d iphone tutorials?

I've been trying to learn Cocos2d iPhone, and I've been looking for tutorials. Does anyone know of any good tutorials that are modern and towards beginning? I've been doing Objective-C for about 6 months, so not that beginning. Thanks ...

How can I output tables to a PDF file with the iPhone SDK?

I want to output a PDF using UIKit's PDF creation methods. I see plenty of information on the web about creating a graphic context in a PDF, but I want to create smart text tables whose cells the user can later copy and paste into other applications (Word, Excel, etc.). How do I do this? Thanks. ...

MKReverseGeocoder causing EXC_BAD_ACCESS?

I have an app that is exhibiting an intermittent crash. The crash logs are showing a stack trace that is tough for me to decipher, so hoping that someone else has seen this and can point me in the right direction. Basically the app does a reverse geocoding request at startup to show the user's location in a label. Additionally, I do a...

Different between self.myIvar and myIvar?

What's the difference between referring to an instance variable in an objective-c class as this: self.myIvar and myIvar if it's been declared as a property in the header and synthesized? ...