iphone

how to exit from currentrunloop

Hi all, I used NSRunloop in my application. While going from my current controller i need to exit from the run loop also. How can i exit from current run loop . Runloop is implemented as follows. while(!completed) { [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:2.0]];//[...

How do I change the user's signature in MFMailComposeViewController?

I am using a MFMailComposeViewController for my application, and everything works fine, but every message has Sent From My iPhone at the end of it. How can I remove this signature line or change it to read Sent From My iPad? ...

exit by status 10, - what is this error code stands for ?

Hi I am building an iphone application. I'm able to run this application in iphone simulator. BUT while installing it into device it is displaying the status code like "TestApp exit with status code -10" What is meant by this ? And how to rectify this... ...

How to detect swiping left / right on the iPhone?

Is there any easy way to detect these kinds of gestures for iPhone? I can use touchesBegan, touchesMoved, touchesEnded. But how can I implement the gestures? thz u. ...

What's the difference between the "client format" and "virtual format" in Audio Unit?

In the context auf Audio Unit or I/O Audio Units? I assume the "client format" is the format of my sound file, while the "virtual format" is whatever openAL uses internally for "rendering" or "mixing" audio? ...

first app - wrong language is shown in appstore

hi all last week i distributed my first app to the appstore. what i've to see was, that the app language which is shown in appstore is not the right one. my app is just in german, but in appstore english is shown up. can somebody tell me what i've exactly got to do, that the language in the appstore is german? i know i ned a "de.lproj"...

FBConnect - uploading images to Wall

Hi All, i've configured FBConnect and it uploads to the wall, but what i want to do is take a screenshot and then upload the screenshot to FB. In the below code there is an image but as a url. Can i intersect this and put in my screenshot image? FBStreamDialog *dialog = [[[FBStreamDialog alloc] init]autorelease]; dialog....

Custom iPhone analytic tool

Do you think that if I'll build my own custom analytic tool (Flurry, Pinchmedia) and I'll host that on the same server where I have my data source for the application, will Apple consider this as a thirdparty analytic tool or not? ... Problem is that Flurry and Pinch are being banned from Appstore by the newest T&C ... than I thought tha...

Adding # & search sign to TableIndex in UITableView

In iPhone native Phone book - there is a search character at the top & # character at the bottom. I want to add both of that character in my table Index. Currently I have implemented following code. atoz=[[NSMutableArray alloc] init]; for(int i=0;i<26;i++){ [atoz addObject:[NSString stringWithFormat:@"%c",i+65]]; } ...

Page flip effect on iPhone / iPad (for book reader)

Hey Guys, anyone has an idea how to build the page flip? I've seen it in flash applications and I want the same functionality for our iPad app ... I want to have a flipped corner on the bottom of the pae that you can drag and flip the page :) ... Cheers, Ondrej ...

How to detect application préference changes.

I created a Settings.bundle in my app where the user can change some properties like font size. It works. But when I leave my App, and I change my setting, I don't know how I can get notified of the change. For the moment, I create a function call each time a view is loaded that check for app settings. But I wonder if there is an othe...

How to let the pageController control the UIImageView?

I want a UIImageView swipe left, the UIImageView will change the image, at this time, the pageController +1, if swipe right, the pageContoller -1, and display the previous image... ...How can I implement it? Any simple code? thz u. ...

Special Characters from SQLite DB

Hi, I read from a sqlite db to my iphone app. Within the texts sometimes there are special characters like 'xf2' or 'xe0' as I can see in the debugger in the char* data type. When I try to transform the chars to an NSString Object by using initWithUTF8String, I get a nil back. How can I transform such special characters? Thanks for you...

How to change the UIImageView image content by code?

I use this to assign image: UIImage *img = [UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"myImage" ofType:@"png"]]; CGRect cropRect = CGRectMake(175, 0, 175, 175); CGImageRef imageRef = CGImageCreateWithImageInRect([img CGImage], cropRect); imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 175, ...

AudioQueue on iPhone

Hi, Is there anyway to record the sound in slow manner using AudioQueues in Iphone(may be in call back function ?). Currently I am recording in Linear PCM with 22050 Hz. Basically I want to adjust the audio samples to match my video frame rate (which is 10 FPS). Thanks ...

iphone fbconnect. does it work with OS 2.2.1 ?

Hi, does fbconnect works with iphone OS 2.2.1 ? ...

Data Formatters temporarily unavailable

I'm currently working on an iPhone app. This app has a login screen, also a signup screen. After the user has successfully signed up, I dismiss the signup view, then the app automatically logs in using the created account. After which, the login view is dismissed, showing the main view. I'm trying to modify this by immediately dismis...

Where I should call [object release] ?

Hello, I've subclassed some UITextField and added some custom properties. In a UITableViewController, in the ViewDiDLoad I init them, and in the cellForRowAtIndexPath I add them to the cell with [cell.contentView addSubview:customTextField]; Each cell has a different customTextField as all of them are very different. Where I should c...

Select videos using UIImagePickerController in 2G/3G

Hi, I am facing a problem where-in I cannot select videos from the photo album in iPhone 2G/3G device. The default photos application does show videos and is capable of playing them, which in turn means that UIImagePickerController should clearly be capable of showing videos in photo album and selecting them. I have coded this to deter...

Implementing scroll view that is much larger than the screen view with random images

What I'm trying to do is to implement something like the fruit machine scroll view. Basically I have a sequence of images (randomly generated on the fly) and I want to allow the users to scroll through this line. There can fit approx 10 images on the screen, but the line is virtually unlimited. My question is what would be the best appr...