iphone

iPhone app quits randomly when accessing a NSString

I've got a problem with a NSString in my app. I've defined it in the header file of my view controller. NSString *locationCoordinates; and I set its value in a -(void) method. - (void)locationUpdate:(CLLocation *)location { <...> NSArray *locArray = [locString componentsSeparatedByString:@", "]; NSString *xCoordinat...

iphone security data encryption

Hey. I would like to save sensitive user data to my apps sandbox but I know that if the phone is then stolen someone can "rip" (if thats the correct term) data off the device quite easily. So I need to use encryption. But I can't use standard private-public keys without either storing them in the code. (not good im assuming as if the b...

How to add tabbarcontroller in viewcontroller in iphone

Hi, I am new to iphone development, i have created my project in view based application and i want to add tabbar controller in my view. I have added tabbarcontroller using interface builder in my view and i cannot see the tabbar in my view. Plz how can i add tabbarcontrolller in view. So plz guide me. thanks. ...

How do I stop iPhones from resizing my background images?

You can see the problem at myspace.com/dejaentenduband on an iPhone, the background image is shrunk by what appears to be nearly 50% I haven't had this issue on on other browser. I'd expect the background to simply be cropped where it doesn't fit the screen. Since it is unusual behavior, and apple must realise this, I'm hoping there i...

Objective-C: Instance Method is Never Called

Hi, I've got a class called RootViewController with this: Test *myLevelObject = [[Test alloc] init]; [myLevelObject afficher]; It is supposed to call my method -[ Test afficher] but there is no warning or error and it does enter the method. Any ideas? thx Declaration of test class : test.m : #import "Test.h" #import "RootViewCon...

Debugging threads in Xcode for iPhone

When debugging in a thread created with an NSOperationQueue I can set breakpoints just fine, but actual crashes result in the thread silently dying. This is in the simulator, but it also happens on the hardware itself. Is there a setting in Xcode (gdb, really) that will catch these? ...

Using Cascade Delete Rule and validateForDelete on a One-to-Many Relationship in iPhone Core Data

Preface: I have two entities defined as a one-to-many relationship: A <<-------> B. B's relationship to A is called myAs and is a to-many relationship with Nullify as the Delete Rule. The inverse relationship from A to B is a to-one relationship with Cascade as the Delete Rule. I have implemented validateForDelete on the B class like s...

Why are there left/right gaps when I add an image to my navigationBar ?

UIImageView *navBarImageView = [[UIImageView alloc] initWithImage:navBarImage]; [navBarImageView setFrame:CGRectMake(0, 0, 320, 44)]; self.navigationItem.titleView = navBarImageView; [navBarImageView release]; I am trying to add an image to my navigationBar, but when I used the code as listed above, it places the image into the navigat...

how to create an opengl iphone app without a .nib file?

The subject says it all: How do I create an iPhone app with an OpenGL view without using a .nib file? ...

Change Dynamically Data Source's xml source on Dashcode.

Classic StackLayout-List(s) scenario. StackLayout have: Home - Detail - Leaf On "Home" I have a Datasource like this: <row><name>Element 1</name><resource>../Element1.xml</resource></row> <row><name>Element 2</name><resource>../Element2.xml</resource></row> This is binded to a list of name "homeList". onClick on "Element 1" i load ...

streaming audio volume iphone

hi I'm working off of an audio streaming example from here http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html Would anybody know of how to change to volume of streaming audio? Also is it possible to know the total length of a mp3 being streamed or the total bytes for the purposes of a progress bar? ...

Name of Provisioning Profile used to sign an iPhone app?

I wrote a script that uses xcodebuild to generate an AdHoc build of an iPhone application. I would like to edit this script to output the name of the Provisioning Profile used to sign the build. This would allow me to include the Provisioning Profile in the zip that is automatically generated. This way, I could automatically send the ar...

UIImage orientation problem

Hello guys! Is there a way to set manually the orientation of UIImage? Or create with orientation or somehow? Thanks! ...

How to make my app more shiny?

Hey, im writing a litte iPhone App and are now searching for some styling Guides to make my App a little more shiny :) For example add rounded rectangles to group Informations. Style my cells, e.g. add a little border to my images I display in the cells. Is there a guide / tutorial i can read? What can be done with Interface Builder...

iPhone CoreLocation: Give user the option to re-enable location usage for an app

If a user declines permission for an app to use the user's location data, is there a way for the user to re-enable it later? Or for me to programatically give the user the option from within the app? ...

iphone/mac - how to download files with AsyncSocket

Hi guys, I have a remote server with some files. I want to use AsyncSocket to download a file, chunk by chunk. I would like to send HTTP requests with ranges through the socket and get the appropriate chunks of data. I understand how to do this on localhost, but not from a remote server. I really don't know how to use the connectToHost ...

how to solve memory allocation problem in iphone development?

Hi, I m creating a simple GUI navigation based application in iphone. When this application run in my IPHONE DEVICE it shows following error, Class_Name(427,0x383772d8) malloc: *** mmap(size=2388660224) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Program received signal: “...

iPhone: Converting Oracle Timestamp to NSDate or to Unix Timestamp (e.g. double)

Is there a good+easy way to convert an Oracle Timestamp to an NSDate object on the iPhone? I have asked my customer to give me a DB with timestamps as Unix Timestamp (doubles with 0 = start of 1970) but it seems to be a problem for them. Thanks. Note: You can easily convert a Unix Timestamp to an NSDate with [NSDate dateWithTimeInter...

Iphone & iPad - how to exclude a resource from a target?

I have two targets on my project - iPad and iPhone. Some resources, as interface images, are exclusively for iPad and others for iPhone. How do I exclude an image, for example, of being included on a given target. This project of mine was created using that "transition" stuff and groups were created: Resources-iPad and Resources-iPhone...

Sorting arrays with cyclic compares (infinite loop?)

Hi, I have some objects that have 3 sorting options: quality, quatity and a compare against the other object, sorted by that order. - (NSComparisonResult) compare: (MyObject *) obj { if (self.quality > obj.quality) return NSOrderedAscending; else if (self.quality < obj.quality) return NSOrderedDescending; if (self.quantity > obj.quant...