iphone

How to calculate the y-pixels of someones weight on a graph? (math+programming question)

I'm not that smart like some of you geniuses. I need some help from a math whiz. My app draws a graph of the users weight over time. I need a surefire way to always get the right pixel position to draw the weight point at for a given weight. For example, say I want to plot the weight 80.0(kg) on the graph when the range of weights is ...

how to insert audio inside video with ffmpeg??

Hi, I create a video with image in real time. I need to add at this audio in real time. I record audio with AVAudioSession but this create a file, i need to get a byte, what library must i use?? thanks ...

Reach the end of the tableview without using 'numberOfRowsInSection' delegate method iphone sdk

Hi all, I want to add a view after the last cell of tableview. I need to define the frame for it. If I want to add something before the first cell, then I can set the frame as refreshHeaderView = [[EGORefreshTableHeaderView alloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.view.bounds.size.height,320.0f, self.view.bounds.size.height)]...

Memory leak when application loads in iPhone

I have a navigation based template, when I run my application using Instruments, the very first memory leak comes under: Leak Object: Malloc 128 bytes Responsible Library: CoreGraphics Responsible Frame: open_handle_to_dylib_path I don't know where this leak is coming from and how remove this. If it's a default leak, then I think I...

How to add two textField value

hi .. i want to take two textfields values and add the values and show them into another textField. How to do this programatically. Thanks in advance ...

iPhone SKD make the iPod controller appear

Hi all, It's been a while I'm consulting stackoverflow, but this time I didn't find any answer :( My question is quite simple :) On an iPhone/iPod touch, play music. Double tap the home button while the music is playing. You will see appear a popup with the play/pause/next/previous buttons and a volume control. Do you know if it's pos...

Xcode Subproject Debug stepping

In my XCode project I link to a couple subprojects (I added those project files, added the lib file to the build phase, included its dir for the header search path). I am trying to debug my app and I'd like to step into a function into one of the subprojects, but Xcode doesn't let me. Do I need to do some other step to get this to work...

Search within HTML files

Hi Forum, In my iPhone project,I have number of HTML files having different textual and image contents within each file. I need to implement search facility which would return results (HTML file names) having matched keyword. Can anybody have any clue, how can I achieve this? Thanks ...

TabBar beginCustomizingItems and endCustomizingAnimated in iphone

Hai. How and when we use the UITabbar beginCustomizingItems and endCustomizingAnimated methods, can any one guide me about these methods ? ...

How to make a line of code execute only after the time interval of the animation block?

I have put a line of code inside the UIAnimation block. And the next line comes after the animation block. I want the second line only to be executed after the time interval of the first animation block. Eg:- [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:0.5]; //First line comes here [self.view addSub...

core plot error?

hi, i am using core plot framework,when i run following code in viewdidload gives crash.the view is as custom view... graph = [(CPXYGraph *)[CPXYGraph alloc] initWithFrame:CGRectZero]; CPLayerHostingView *hostingView = (CPLayerHostingView *)self.view; hostingView.hostedLayer = graph;**(gives error)** what i have to do? any help pleas...

Objective-c for the iphone: Mystery memory leak

My application seems to have 4 memory leaks (on the device, running instruments). The memory leaks seems to come from this code: NSURL *url = [self getUrl:destination]; [destination release]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url]; [request setHTTPMethod:@"GET"]; [request addValue:@"application/j...

EXC_BAD_ACCESS in NSURLConnection: how to debug?

I have an iPhone app that downloads URLs. (PDFs to display) Easy: self.request = [NSURLRequest requestWithURL:self.url]; self.conn = [NSURLConnection connectionWithRequest:self.request delegate:self]; where self.conn and request are retained properties. For specific URLs, this throws EXC_BAD_ACCESS. The URL is valid and is constructe...

How to calculate a point with an given center, angle and radius?

In this SO question, someone asked for calculating an angle from three points. I need to do the opposite thing. I want to draw a clock, and I have tiny tick images. An art dude made 60 of them, each with an individual and accurate shadow. So there are 60 distinct images at 10x10 points in size, already correctly rotated in the center of...

How can I use images provided by the iPhone OS?

Hello all, First, let me state what brought this question about: I saw the green checkmark icon in this post and I would like to use it in my own application. However, since it looks so much like the UITableViewCellAccessoryDetailDisclosureButton my assumption is that this green checkmark icon is provided by the iPhone OS in some form o...

zoom in on a uiwebview by taping!?

In Safair mobile you can zoom in by double taping if you have a html page that you display. But if you use a uiwebview and display an image or pdf file you have to pinch open to zoom. My question is: what do I have to do to get double tap to work when displaying an image or pdf file i a uiwebview? Can you make the uiwebview a sub view ...

Looking for Reachability (2.0) Use Case Validation

There is so much info out there on using Apple's Reachability example, and so much is conflicting. I'm trying to find out of I'm using it (Reachability 2.0) correctly below. My App use case is this: If an internet connection is available through any means (wifi, LAN, Edge, 3G, etc.) a UIButton ("See More") is visible on various views. If...

how to create a particle system on iphone and retain the created particles?

Hi all, I need to create a particle system and retain the created particles. I need to shake / move the created particles with the iphone accelerometer. Also, the number of particles needs to be very high (I need to show sand!). I do not have any OpenGLES programming experience. After initial search, I found Cocos2D can be used for pa...

How to play sounds in locked mode on iPhone

Everybody knows the standard procedure to keep your app alive, after the user pressed the lock button (silent sound). If I start a sound with AVAudioPlayer (before the iphone is locked), the sound plays till it's end (after locking). The app is still running. If I try to start another sound while the iPhone is locked, it will never get p...

How to obtain the y-coordinate of contentoffset of the end of tableview?

Hi all, I have added a view at the end of tableview and I needed to check a condition for the cell pull offset for which I wanted obtain the y-coordinate of contentoffset of the end of tableview. I'm checking for the offeset at the start of tableview like this : if (refreshHeaderView.isFlipped && scrollView.contentOffset.y > -65.0...