iphone

iPhone dev: how to load images named the same from different groups

Hi, I am working on an iPhone project, and have two themes defined under different directories, with most files share the same names (like background.png, image1.png, image2.png, etc). I have had them imported into xcode under different group names (group1, group2). How do I tell UIImage to load an image from a given group, say, I want...

iPhone dev: Get keys (public / private)

I'm using another computer than normal to do iPhone dev. Now I'm trying to get my apps onto my iPhone, but fail with the certificates, keys and stuff. Refer to this thread: http://stackoverflow.com/questions/613719/iphone-provisioning-problem-public-private-key Actually I'm able to download my cert no problem from Apple's site, but how...

Warning: passing Argument 1 of "sqlite3_bind_text" from incompatible pointer type" What should I do for this?

Hi All, i am pretty new in iphone development. I have created one function to insert data into database. The code compiles successfully. But when comes to statement sqlite3_bind_text(sqlStatement, 1, [s UTF8String], -1, SQLITE_TRANSIENT); it does not do anything but hangs AND in warning it says "passing Argument 1 of "sqlite3_bind_text"...

Iphone simulator User Album Photo

Hi, I'm doing image modification on my iphone simulator using pixel value. I created severals photo that I saved in the User Photo Album, and I want to get it back from the simulator to my imac. Where can I found the image? ...

How would you measure conversion for an iPhone App Download?

I want to test how users convert from my web page to downloading my iPhone app. Right now the best funnel I figured out was to go through a page that pings Google Analytics and then redirects to an iTunes link. But this funnel only measures conversion for users who got redirected to iTunes and not if they actually downloaded the app once...

make background dull while displaying activity indicator ??

while restoring some data i am displaying a activity indicator..but i want the background image to become dull or dim a bit so that the focus is on activity indicator..i have seen that in some applications but cant figure out how to achieve that?? ...

how to expand the width of navigation bar in iphone?

is it possible how to expand the width of navigation bar in iphone? ...

framework for setting the sms body programmatically in iphone

i want to set the sms body by my application so there is any way or a framework available to do this task.. and if any framework than how to implement that.. plz help. i searched a lot on google but all in vain... ...

Incorrect value for sum of two NSIntegers

Hi everybody: I'm sure I'm missing something and the answer is very simple, but I can't seem to understand why this is happening. I'm trying to make an average of dates: NSInteger runningSum =0; NSInteger count=0; for (EventoData *event in self.events) { NSDate *dateFromString = [[NSDate alloc] init]; if (event.date != nil) { ...

iPhone accelerometer changing senstivity

Hi ! I'm trying to use the accelerometer to move a UIImage. I works well but my problem is that with my code self.character.center = CGPointMake(160+acceleration.x*175, 230-acceleration.y*175); my picture moves even on a stable surface because of the precision of the acceleration.x value. So I decided to use a workaround by multiply...

Which parameter to pass to glGet for getting current framebuffer in OpenGLES iPhone.

I know to use glGet to get various parameters. I need to know how to get the current GL_FRAMEBUFFER_OES and get the GLuint type framebuffer id. I need to use renderToTexture. This will make one of the classes code easier when switching back to normal framebuffer. ...

audio not playing in audio queue

In my application i am using audio queue for recording and play back sound and also playing sound files in app. But when I try to play sound files down loaded from server with different sample rate its not playing any sound. Sound files can be very small about 1-2 seconds or less than that also. Its happening specially for short files. F...

Autorelease: Use always when you've NARC'ed?

I know this question looks like a dupe: I checked and it's not In talking about NARC, the author of this blog says, "Personally, I like to immediately autorelease anything I NARC-ed, on the same line." This goes completely counter to all the examples I've seen on the Apple site and in books, where autorelease is only used when the objec...

Animating UIImageView iPhone

Hi, i'm having trouble about animating an Image in a UIImageView. I've created an image view in interface builder and linked it to its iboutlet. Here is my code. @interface Game : UIViewController <UIAccelerometerDelegate>{ IBOutlet UIImageView *diying; } @property (nonatomic, retain) UIImageView *diying; In the vie...

shishir has exited with status 10???

My application is terminating automatically and xcode showing this shishir has exited with status 10 What does this mean? I am simply parsing few images, nothing more than that. regards shishir ...

iPhone: How can I turn a flipside view into a scrolling UIScroll view?

This should be simple. I'm making a very basic app, based on the Utility Application template of XCode. On the flipside, I have more content than fits the screen. The flipside is a UIView. I think it should be a UIScrollView, but somehow I don't get it to work. Can anybody here advise me on this? ...

Cache tableView cell data

Hi all, In my application, I want to cache the displayed data in tableview so that whenever the application starts or if the internet connection isn't there, my tableview should be able to display the cached old data [not completely but say 10 old cached cells]. What I'm displaying in individual cells is an object of one of the 8 clas...

Force Calculate using UIAcceleration values in iphone

How to calculate force value of iphone using UIAcceleration values.... Can anyone help me? What i want is ? When user moves slowly from one region to other i want to do some task or they move faster i want to do some other task .... Can anyone help me ? Thanks in advance..... ...

Instruments bug or coding error?

A quick question from a beginner. I'm doing an App for the iPhone and get the following message in Instruments when looking for leaks. Is there anything I have done wrong or is this just how it is? I had some memory leaks in my own library, but I took care of those. But how to solve this? Thanks ...

video Saving & trimming fucntionality.

Using ImagepickerController i am able to record the video and saving also. But I want to save the video for last 5 mins only. Here i tried to trim the video by using yellow bar at the top ,But not getting the trimming video. Could any one help me plzz. Have any method to trim the video as per the time. Also Like in photo album, when we...