iphone

tableview coredata temporary object

Hi, I am using a tableview with data from coredata using nsfetchedresultscontroller. When the view loads i make a new entity using SomeManagedObject *someManagedObject = [NSEntityDescription insertNewObjectForEntityForName:@"SomeManagedObject" inManagedObjectContext:self.managedObjectContext]; This way the new entity appears in my ta...

-ObjC Flag in Xcode Issue

Hi all, I am trying to build a simple iPhone app that calls several static libraries. However, it seems when I include the linker flag "-ObjC" and "-all_load" (as I need to for one library), it causes the linker error: ld: duplicate symbol _OBJC_METACLASS_$_ASIFormDataRequest in /Users/XXXXX/Projects/AppName/Dependencies/Library1/lib1K...

iOS4 breaks my app [solved]

Hey, On all iPhones (we checked) which have been updated to iOS4, our app is behaving differently (buggy) than on previous OS version (3.1.3). First and most biggest problem is that on 3G (but not on 3GS), any UIAlertView freezes the app - actually it looks like that app losses focus to give it to UIAlertView, but UIAlertView doesn't ge...

Draw line in UIView

I need to draw a horizontal line in a UIView. What is the easiest way to do it. For example, I want to draw a black horizontal line at y-coord=200. I am NOT using Interface Builder. ...

Update applications for iPhone 4 Retina Display

Hello, I was just wondering how you would go about giving a application the new sharper images for the iPhone 4? i know the SDK already cleans up text and UI elements but how should I go about updating my image UI. Is there a different way (like a folder or file extension) to add the new images for the iPhone 4 or should I just go and ad...

How to create multi-column text layout for iPad?

Hello, I'm looking for a way to create kind-of an article reader which would have 2-3 columns of text which could occasionally wrap about some image. Just like it's done in "New York Times" or "Wall Street Journal" and other iPad applications. Also, that text should be paged and every page should have UITableView at it's side (just li...

Core Data migration of more than one version at a time doesn't work?

Using Lightweight Migrations for my Core Data data model. Each update has gone smoothly…in the simulator. On my device, I had not gone through each migration one-by-one. For example, my device had version 3, and I was on version 5. On the simulator, I went from 3 to 4 and then from 4 to 5, but when the device attempted to go from 3 t...

iPhone volume changed event for volume already max

I'm using AudioSessionAddPropertyListener(kAudioSessionProperty_CurrentHardwareOutputVolume, audioVolumeChangeListenerCallback, self); to detect volume changes so i can take a picture with the volume rockers but if the phone is already at 100% i don't get an event. Is there a way to detect volume ro...

iPhone Address book: How to select multiple contacts ?

I would like to execute the same operation on multiple contact of the Address Book. Is there an API available to allow multiple contacts selection from the Address Book ? If it is not possible natively with iPhone SDK, is there any other alternative / library doing this simple thing ? ...

iphone target might include its own product

Hello After adding image resource into app (and may be some step I do not remember about) xcode reports with message: this target might contain its own product Do you have any ideas how to solve this? thank you ...

iphone app name changed in "release" mode

I am getting ready to submit my first app and for some reason when I changed xcode to "release" mode - the name below my icon changes. The info.plst file still says [Product_name] and when I go into the info section of the app it still says what I want it to say under Product name. When I switch back to debug and run the app the name i...

How do I mirror a UIImage picture from UIImagePickerController

I'm trying to figure out if there is any way to mirror an image. For example, take a picture of someone's face and then cut it in half and show what their face looks like with each side mirrored. There doesn't seem to be any tricks like this in CGAffineTransform functions. Graphics experts please help!!! ...

Need to capture UIView into a UIImage, including all subviews

I need to capture a UIView and all it's subviews into a UIImage. The problem is that part of the view is off screen, so I can't use the screen capture function, and when I try to use the UIGraphicsGetImageFromCurrentImageContext() function, it doesn't seem to capture the subviews as well. Should it be capturing the subviews and I'm just ...

how to solve unrecognized selector sent to instance?

I have a uitableview 'A' which has cells, on clicking one of the cell, it needs to push another table view 'B'. and now when a cell is clicked in 'B', its needs to open a simple view. I have managed to display both the tables in two different views. but when a cell is clicked in the menu B. it hangs and shows the below message > unreco...

iPhone: Force UIButton to redraw itself

Hi, I have a little problem and I would be gratefull if someone could help me. I got 5 UIButtons placed next to each other and what I wanna do is set image on first button, redraw it so it, wait for 1 second, then set some other image on second button, redraw second button and so on. I tried to set image on button, then call function sle...

iOS4 & background [UIImage setImage:]

Hi, Up to OS 3.2, I used this kind of code to load UIImageView image in background, and it worked fine... Code: - (void)decodeImageName:(NSString *)name { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; UIImage *newImage = [UIImage imageNamed:name]; [myImageView setImage:newImage]; [pool release]; } ... [se...

iPhone video geo-data metadata

Is there a command line tool or ruby gem that can extract the geo-data from videos recorded on an iPhone? ...

Base SDK missing - red .app portion???

I am reading the provisioning profile stuff on the app store website and am having a heck of a time figuring everything out. I have my distribution certificates and everything but I think that something is massively messed up in xcode. When I switch to my distribution profile in the overview pulldown - it immediately changes to "Base S...

HTTPRequest and save the file locally into iPad/iPhone

Hi guys, how do i do a HTTPRequest and then save the File locally into the iPad/iPhone. Im working with the simulator right now so is it possible to emulate the local data storage? ...

UIAlertView and Core Data

Hi to all of stackoverflow, i'm Italian so, i'm sorry for my bad English... :D i tried to create a simple tableView for listing a few names and a number... all with core data. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Track *track = [[self fetchedResultsController] objectAtIndexPat...