iphone

iphone argument keep its data problem

i'm facing a really strange problem here i'm having this method in iphone sdk which all what it have to do is get the next row data from the database and i want to make some validation so the user don't go to -1 row for example.. so i did the code ___________________ -(void)getPageContent:(int)inx{ CryptAppDelegate *appDelegate = (Cr...

Core Data errors in iPhone app. "_OBJC_CLASS_$_NSFetchedResultsController"

"_OBJC_CLASS_$_NSFetchedResultsController", referenced from: objc-class-ref-to-NSFetchedResultsController in RootViewController.o I'm getting 7 of the errors above in my iphone app. I had an app that used core data but i wanted to use an rss xml parser with it, so i created a new empty app and put both of the projects into it, now i hav...

Can phone apps detect what phones around them are running the same app?

I would like a cell phone app to be able to determine how many cell phones around it are running the same app. I'm not sure what direction to start researching (API's,concepts) to understand how my phone would figure out what other phones are running the same app in a specific distance. ...

releasing subcontrollers

Im making a gallery and using a scrollview to show fullscreen size images, after som images i recive a memory warning, right now i didrecivememorywaring ` - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; for (unsigned i = 0; i < [appDelegate.inGallery count]; i++) { if (i != currentPage && i != currentPage ...

need a Saple JSON parser in objective c

I want to know to parse a json object in objective c... i get the json object by loading a url.... can u please tell me how to do it or any samples or any reference.... the following is the sample json... {"name":"WFNX","now": {"id":"17749528","song":"Back Down South","artist":"Kings Of Leon"}, "desc":"101.7 - True Alternative",...

Problem with NSManagedObjectContext crashing app

I have a navigation based app that uses Core Data for storage. The schema for this particular section is as follows: Scene hasMany Tasks hasMany DeviceCommands Tasks also have many other objects besides DeviceCommands (like DelayCommands etc), but this is beyond the scope of the problem (I think). DeviceCommands also link to a parent ...

progress of AVAssetWriter

How can I calculate the progress of an AVAssetWriter process? So if I have something like: [assetWriterInput requestMediaDataWhenReadyOnQueue:queue usingBlock:^{ while (1){ if ([assetWriterInput isReadyForMoreMediaData]) { CMSampleBufferRef sampleBuffer = [audioMixOutput copyNextSampleBuffer]; if (sampleBuffer) { ...

how to programmatically fake a touch even to a UIButton?

I'm writing some unit tests and, because of the nature of this particular app, it's important that I get as high up the UI chain as possible. So, what I'd like to do is programmatically trigger a button-press, as if the user had pressed the button in the GUI. (Yes, yes -- I could just call the IBAction selector but, again, the nature o...

App crashes when I pop a view from NavigationController using a UIButton

I'm pushing a simple view onto a NavigationController. The view loads fine, and when I use the built-in back button, it is properly popped. However, when I try and pop the view with my own UIButton within the view, I get a crash. This is the action run by my UIButton: -(IBAction)iAgreePressed { [[self navigationController] popViewCo...

Core Data: storing web content before saving

I am currently developing an app that relies heavily on retrieving web content. I have a series of NSObject classes that represent the content that I retrieve in JSON format. I also have NSManagedObject classes that represent my Core Data model that are almost identical. Here is an example of an NSObject class that I use to hold my web ...

Why don't I have to release managedObjectContext in the 2nd TableViewController.

Hi all. I have two tableview controllers showing CoreData objects. One is a detail view (with sentences) one is an overview (with stories). Pick a Story -> See the Sentences. It looks like I was over-releasing my managedObjectContext; I originally released it in both TableViewControllers in dealloc and got a crash every third time I we...

Programmatically added button crashing the app.

When i press my button the app crashes. Happens even when I create the button programmatically or try and add one through the XIB for the class where I need the button. I enabled Zombies and the debug msg I get from the console is : 2010-10-27 00:47:28.643 CarTrawler[1537:207] * -[ReceiptView performSelector:withObject:withObject:]: me...

Storing OAuth keys in code for iPhone apps

I'm writing an iPhone app that integrates with third party APIs. These APIs use OAuth (key/secret specific to my app not per user) in order to authenticate which app the request is being made in behalf of. Is it secure (or how secure) is it to simply put the key/secret in code? Can this sort of data be reverse-engineered? Is there a bet...

Problem adding an image to the toolbar using UIBarButtonItem, displaying blank white box instead of image.

Im not sure what im doing wrong. The file name is correct, the style is set to plain. But Im getting a bank white box the size of my image. Im using UINavigationController. Please assist and thank you thank you in advance. **FYI I am sorta new to objective c so dont be too hard on me. ;) UIBarButtonItem *toolbarChannelGuideButton ...

Learning Core Graphics

I'm doing iPhone programming and I need to learn about Core Graphics. It looks Apple doesn't provide a programming guide for Core Graphics and I'm having hard times following the code that uses Core Graphics. Do you suggest any reference or book for learning Core Graphics? ...

How to make a simple EQ AudioUnit (bass, mid, treble) with iOS?

Hi, does anyone know how to make a simple EQ audio unit (3 bands - low, mid, hi) with iOS ? I know how to add an iPod EQ Audio Unit to my AU Graph. But it only give you access to presets and I need proper control of the EQ. I've looked around for some tutorials or explanations but no luck. Thanks. André ...

Table cells delete wrongly

I have an app set up to have a tableview, which allows the user to add and delete cells (which are events). Adding and deleting DOES work, however when I delete a cell (by entering edit mode), I can click the (-) button to delete, then I hit the delete button, however the delete button stays highlighted and the cell does not disappear un...

startMonitoringForRegion not always adding regions to monitoredRegions.

I can not get startMonitoringForRegion to consistently add regions. int i =0; for(Deals *d in deals){ NSLog(@"deal addRegionsInDealsArray %@",d.deal_id); if (d.latitude != NULL && d.longitude!=NULL && ![d.latitude isEqualToNumber:[NSNumber numberWithInt:0 ]] && !...

how to add comment via facebook connect on iphone

I have been trying to use the comments.add REST api method to add comments to objects. I have all the publish_stream permissions and access_token's but its coming back with a 805. Anyone know how to get it to work? I'm trying to comment on a photo and I'm passing in its object_id. ...

Getting more information when an Objective-C exception is raised due to assertion failure

I'm getting an assertion failure from a UIKit function in my iPhone app. The error message looks a bit like this: 2010-10-27 02:31:49.058 MyProgram[114:207] *** Assertion failure in <some random UIKit function>, <location in UIKit source code> The exact error isn't really important, but my problem is just that the message is a bit shor...