iphone

How do I play a specific range of a UIImageView animation sequence array?

Hi, I have a question regarding a png, animated image sequence. I am loading images from 1 - 35 into a layer and I am initializing the layer with the 1st image using - initWithImage. I have several buttons that want to be able to play different ranges of the image sequence array. Is there a way to play only the images from 1 - 10? I...

Distorted sound when using remote I/O AudioUnit

Consider aurioTouch sample application provided by Apple. I wanted to simulate a lengthy processing of the recorded audio and modified the sample by introducing a delay of 0.1 second in the render callback method: PerformThru. This leads to a distorted audio and static noise being played through iPhone's speaker or headphones. The noise ...

SOLVED: Peculiar problem - iphone application distribution build contains a bug

SOLVED: This has been solved following the assistance of many people. I'm now writing this, so that people with similar problems can benefit from it. In order for me to recreate this bug, I had to run the distribution build on my device. This was accomplished following MrMage's advice, which told me to change the certificate to the devel...

iPhone Quartz 2d development using C++?

Could I write c++ code that interacts with the iPhone Quartz 2D framework, or can I only using objective-c? Thanks ...

How to launch an iPhone application

I know launch an application may via touch ico on the desktop. And is it start by its plistfile? Is there any other way to launch app? ...

synchronize one object between two controllers in Cocoa

I have a MainController, it creates an object(say polygon), a controller(say,polygonViewController). PolygonViewController has two outlets: IBOutlet Polygon* aPolygon; IBOutlet UILabel* numOfSidesLabel; it mediates Polygon and PolygonViewController.xib file. How do I make sure the PolygonViewController's aPolygon is the same(instan...

How do I define and use an ENUM in Objective-C?

I declared an enum in my implementation file as shown below, and declared a variable of that type in my interface as PlayerState thePlayerState; and used the variable in my methods. But I am getting errors stating that it is undeclared. How do I correctly declare and use a variable of type PlayerState in my methods?: In the .m file @im...

Crash in FixMath and MachineExceptions.h after adding AudioToolbox.framework

Made a new window application. Right-clicked Frameworks > Add Existing Frameworks. Selected Frameworks folder, then AudioToolbox.framework. Build, and 11 crashes. #elif defined __ppc__ || __ppc64__ #define _IntSaturate(x) ((int) (x)) #else #error "Unknown architecture." // To use unoptimized standard C code, remove above line. #defi...

Is it possible to detect Core or system Temperature of iPhone ?

is it available in iphone sdk ? if yes could you show me some example? ...

write own mail client to send Mail using SMTP/POP3 server on iphone

Hi, I am trying to develop application to send mail using configured SMTP client rather than iPhone's default MailController. How can i implement this functionality? Is it possible to design such client? Thanks, Jim. ...

Compensating For Value Change While Changing Value?

i'm attempting to add my own continuous pitch modulation (vibrato) to my OpenAL object by assigning the sound's pitch to the path of a sine wave. this is my callback method, which is repeating every 1/30 of a second, as well as the getter and setter for the pitch. #define kMaximumAplitude 0.025 #define kVibratoDegreeIncrements is 45 #d...

Where do I release CGMutablePath??

I'm posting this question again but this time I'm including the full code. It's extremely long, but here goes nothing. I don't know where to release thePath? I believe it's the last of my leaks, hopefully. -(void)MoveObject:(int)Tag { representationX = gameViewObj.spaceshipImageView.center.x; representationY = g...

UIWebView and install questions

I have two questions which make me in trouble. I drap a UIWebView on UIView,then I can't get the touch events,the one I can get is just from UIView. Does iphone can run app just when it had installed? The other way,Can it launch itself at once when it finish installation. ...

How To Play Movie In iPhone Portrait Mode Half Screen

Hello, Could anyone tell me how I can play movie in portrait mode half screen? I can't use [mMoviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO] API because it is a private API (Apple will reject our application if we use their private API). ...

Setting view.center makes my buttons NOT work

I am working on a landscape view iPhone application. I rotate the view, then add another view inside it, which I call "horizontalView" in the code below. After adding this, I re-center it to the middle. This works fine to re-center correctly, but the trouble is that, my buttons in the mainView starts not working. // Add the horizontal ...

A single smartphone-compatible (iPhone, Blackberry, Android) mobile version for a Rails app?

So I just learned about jQTouch and others (PhoneGap?) and there seems to be great work being done in this space. I have a Rails app and would like a single production-quality mobile version that will work across the aforementioned platforms (and others?), with minimal extra development work. ...

Not able open open applications in iPhone SDK 3.2

Hi guys i have downloaded iPhone SDK 3.2 and installed it successfully, after that i shutdown the system and restart it. When i am opening previous applications or try to create new application i am getting "Not Responding". What may be the problem can any one help me out. ...

How do I run a system command in a cydget using objective c or javascript?

Hi! I am trying to run a Ruby script from a cydget (cydget is a framework made by Saurik for writing lockscreens on the iPhone, using cycript, which is a mix of javascript & objc - see http://www.cycript.org/ ) The script will first check to see if a WEBrick server is running, if so it will quietly exit, if not it will start the server...

How to get iphone movie player handler (UIWindow handler)

Hello, I am trying to play a video like this self.webView = [[UIWebView alloc] initWithFrame: CGRectMake(0.0, 0.0, 1.0, 1.0)]; NSURLRequest *request = [[NSURLRequest alloc] initWithURL: urlToMovie]; [self.webView loadRequest: request]; [request release]; could anyone tell me how can i get moviePlayerWindow (UIWindow ) handler if i a...

Why I can support zooming a UIScrollView without conforming to the UIScrollViewDelegate?

To support zooming a image in a UIScrollView, I thought I have to conform the MyController to the UIScrollViewDelegate like as follows. But it works fine without conforming to the UIScrollViewDelegate, even though compiler generates a following warning message. warning: class 'MyController' does not implement the 'UIScrollViewDelegate' p...