iphone

OpenGL ES; rendering texture created from CGBitmapContext

I am executing the following, which I have derived from a few different tutorials (Just a single render pass, initialisation code not shown but works fine for untextured primitives): glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrthof(0, xSize, 0, ySize, -1.0f, 1.0f); glMatrixMode(GL_MODELVIEW); glColor4f(1.0f, 1.0f, 1.0f, 1.0f); g...

iPhone: Invalid Characters in filesystem

Hi, is the iPhone's filesystem or the use of NSFilemanager restricted to any characters or is everything allowed (this is what I'm currently assuming after doing some research). ...

Sample rate of magnetometer (compass)

I was experimenting with the magnetometer (iPhone 3GS) and the Teslameter sample program. One question pops up, and that is if it is possible through some API to query the values of the magnetometer without going through the event-driven API. More specifically, the sample rate from the magnetometer seems to be limited to ~20-30 samples/...

iPhone first time application ran and config files

Hello. I have two question: I'm developing an iPhone application and I want to know when it is the first time the application is executed. I want to check some extended permissions from facebook the first time. How can I know that? (first question) Another way to solved this problem is to store the extended permissions granted in s...

One label, two different fonts?

I need to format text in a label like this: username: some text from this user. This will create additional lines of text that will go on and on and on. Where "username" is bold. This will go into a UILabel, which is in a custom table cell. Is there a way to get this type of layout? ...

How to figure out if two CGRect intersect?

In -drawRect: I want to check if the provided rect intersects with anotherRect. I'm not good at this geometry math stuff and especially at english so what I want to say is: If you have two sheets of paper on the desk, and one of them covers the other either completely or just a small portion, it is rectsIntersect = YES. How to check t...

Core Data migration failing with error: Failed to save new store after first pass of migration

In the past I had already implemented successfully automatic migration from version 1 of my data model to version 2. Now, using SDK 3.1.3, migrating from version 2 to version 3 fails with the following error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 UserInfo=0x5363360 "Operation could not be completed. (Cocoa error 1...

How to make a UISplitViewController in portrait mode?

I want to make a UISplitViewController in portrait mode just like in the Settings app. How can I do it? ...

Inter-ViewController parameters passing in iPhone programming... how to?

I read: http://stackoverflow.com/questions/2363777/iphone-how-to-pass-data-between-several-viewcontrollers-in-a-tabbar-app and was wondering what is the difference between [[UIApplication sharedApplicaton] delegate] and extern struct* global ? Conceptually, I don't see how [[UIApplication sharedApplicaton] delegate] not being a ...

:-( A valid signing identity matching this profile could not be found in your keychain

Hello everyone I hope to test my app on iPod Touch I created development provisioning profile. I dragged downloaded .mobileprovision file to Organizer There is a yellow triangle warned that "A valid signing identity matching this profile could not be found in your keychain" The others distribution provisioning profiles have no any p...

Overlay image/map on MapView?

Okay, hope you can help med here :) I have been searching everywhere to figure this out, but haven't had any luck. I know about Annotations and how to overlay them on a map on the iPhone. But what if I have location like in the forest where there arent any roads or anything. What I am asking is, how can I overlay a custom image (map) ...

Fullcalendar on IPhone

Hello all, Is it possible to use fullcalendar on iphone native app reading events from servlet on a remote server? Features required are Month, Week and Day view. No need of adding, editing or deleting events. Clicking on event display the summary of the event. I would be very happy if fullcalendar is capable of the same, if no what are...

Facebook Connect for iPhone with a Session Proxy

I'm using the Facebook Connect for iPhone SDK at http://github.com/facebook/facebook-iphone-sdk/ and am trying to get the provided demo "Connect" app to work using a Session Proxy. The iPhone shows the connect dialogue and gives my server a valid auth token which I pass to facebook. Facebook responds with a valid session key and session...

how to solve issue when keyboard is getting displayed, keyboard hides the tab bar.

when keyboard is getting displayed, keyboard hides the tab bar. How to change the position for keyboard? I want to do similar to skype app calling screen. I want to display simple keyboard on my tab bar from bottom i have found lots of links and explanation on adding toolbar & tab bar on top of keyboard please help to solve this ASAP i ...

Is it possible to integrate Google Maps with the directions and the Transit layer into an iPhone app?

Sorry if this question is obvious for some of you. I know we can link to the existing Goggle Maps app, but I would like to have an app that does not exit and provides the direction within. I intend using GTFS for public transit. On the other hand, would it be possible to plot a line inside the iPhone app the results as returned by Goo...

Application-wide variables and helpers

Hi: I'm sure this question is fairly simple to answer... is there any way to make variables and helpers available application-wide on the iPhone, without using the Application delegate? Thanks! ------------ edit ------------ Thanks for your help. your comments helped! This is how I implemented my solution... UIColor+Helpers.h: #impo...

iPhone - Get controller which pushed me

Hi everyone, When I pushed a controller, is there a way to get the controller which pushed it (without sending it)? Or the first one? Thanks ...

Streaming to iphone via m3u8

Hi: I've been reading around about streaming on the iphone via m3u8 but I'm not sure if I'm missing something. It is well documented that MPMoviePlayerController will only play full-screen in OS 3.1, so iPhone users are stuck watching the video (listening to audio, in my case) and can't navigate in the application. I haven't found a way...

UIAlertView Dismiss Not Really Dismissed

Below is the code I'm using to do a retry on an FBConnect session. When the [self loginToFaceBook] fires FBConnect adds a subview to 'window' which is still the UIAlert view, so when the UIAlert really dismisses it takes the FBConnect view with it. Any idea as to the best way to wait for the UIAlert view to be gone. -(void)alertView:(...

Array, find object with value and get its indexPath

Hey. I am trying to find an item in a NSMutableArray from it's value, only to find its indexPath. I have absolutely no idea of how to do this, as I am very new to programming in general. Thanks! ...