iphone

Using libraraies

Hi , I have a Library built in Macosx ibopencore-amrnb.a. Can I use it with my Iphone app as library? If yes How ? If not How Do i get the library working with Iphone app? Thanks, Sowri ...

Does moving a view to new superview automatically release it from old superview?

It's not clear, to me anyway, if a UIView is automatically released from its superview if you use addSubview to add it to another view?!? I know a view can only have ONE superview but I'm not clear about how, exactly, to go about moving a subview from one superview to another. retain view, release (from old superview), addSubview to new...

Using Finch to play sounds on iphone

I have an application which has two kinds of sounds: 1. Background sounds, looping forever till next view. 2. Sounds clips that could be played separately or all in one go. Previously i tried using AVAudioPlayer but there was always a very little silence interval between two clips (to which i didn't find any solution, if you have one, p...

What is a good performance profiler for iPhone games made w/ objective-C and XCode?

I'm writing an iPhone game in objective-C using XCode. I'd like to profile the performance of my code. What is a good profiler to use? ...

iPhone: Adjusting playback volume in app during a phone call

I have a soundboard application that plays mp3 files using AVAudioPlayer. The sound can be adjusted to high while listening to any of the clips. My problem is when the phone is in use and I navigate to the app to play the soundboard the volume is set very low. I'm trying to make it so the the sound from my app can be heard by the perso...

Remove all but numbers from NSString

I have an NSString (phone number) with some parenthesis and hyphens as some phone numbers are formatted. How would I remove all characters except numbers from the string? ...

doubts in using static analyser

i follow the following steps to install and configure clang static analyser.but still i could not run scan-build command in project directory can anyone can give correct tutorial to set path and also run scan-build command.terminal shows "scan-build command not found" the steps i followed: Installation: Navigate to http://clang.llvm.org...

Storing UIImages with ObjectiveRecord and ObjectiveSync

Does anyone know how I should go about storing a UIImage with the version of ObjectiveRecord packaged with ObjectiveSync? (Note that the version of SQLPersistantObjects in ObjectiveRecord is older than the current version) At the moment, I am attempting to store the UIImage data as NSData: @interface Picture : SQLitePersistentObject { N...

How to resolve linking error - static lib iPhone

Hi All, I have tried making a static lib on iPhone but I am not able to use it in other project. I am getting this error .objc_class_name_XMLParser", referenced from: literal-pointer@__OBJC@__cls_refs@XMLParser in Minutes2MidnightViewController.o ".objc_class_name_TickerViewController", referenced from: literal-pointer@__...

opengl_error_break

I'm developing a game for iPhone and is pretty far along, but one thing bugs me when using Instrument a see that something called opengl_error_break is taking LOTS of valueable time. The caller seems to be MBXGLEngine which is a part of the OpenGLES framework but I have no idea of what it does or how to debug it. Does any one here have...

black uitableviewcell accessary?

is there a way to turn the default UITableViewCellAccessoryDetailDisclosureButton from blue colour to black colour???? ...

Lazy load images in UITableView

Hi I have some 50 custom cells in my UITableView. I want to display an image and a label in the cells where I get the images from URLs. I want to do a lazy load of images so the UI does not freeze up while the images are being loaded. I tried getting the images in separate threads but I have to load each image every time a cell becomes...

Making Software/Money while travelling?

I keep hearing stories of developers having an endless summer on the back of their iphone fart apps and such. do you have any stories of a development style thats let you set your own schedule more. I tend to contract for 8 months and work on startups from home for 4 months over summer. This seems to just take me out of a cubicle. ...

iphone video

How do I add a video in my iphone application? I just want to show a video in 1st screen. ...

Slideup\Animate next page with jquery

I use the following to load a new page within the current page, no refresh. $(document).ready(function(){ $("#leftnav").click(function(){ $.post("regions.php",function(data){document.write(data)},"html") return false; }); }); Is it possible to animate the new page with jquery, like slide up the new page? Thanks, ...

iphone > xml-rpc cookie authentication

Hey there I successfully integrated the xml-rpc framwork from the wordpress app into my project. It works just fine. Thanks for that. Know I need to set an http cookie when I'm connect to the service I'm working with. What would be the best way to do this in combination with the xml-rpc framework? I'm not that experienced with this techn...

OpenGL render state management

Hello All, I'm currently working on a small iPhone game, and am porting the 3d engine I've started to develop for the Mac to the iPhone. This is all going very well, and all functionality of the Mac engine is now present on the iPhone. The engine was by no means finished, but now at least I have basic resource management, a scene graph ...

How to change the Center-of-Rotation in OpenGL

I have a 3D Model (OpenGL ES 1.1 iPhone SDK v3.0) that is somewhat complex (i.e. Thousands of Vertexes and Faces) and I'd like to rotate this model around the Y-axis at or near the center of the Model. The problem is that glRotate rotates my model around a point at/near the center of one of its bottom edges, NOT near the center of the Mo...

Does UIAlert need some sort of delay?

Trying to alert user when internet is unavailable (and retry when they dismiss message). The screen slightly dims (in preparation for alert), but the alert never displays. Is the while loop interfering with the alert? -(NSArray*)getResponse:(NSString*)page { NSError *error; NSURLResponse *response; NSData *dataReply; NSString *strin...

iphone function

hi i hav a code like this in the end i m getting error "the control reaches end of non-void function" how'll i get rid of this? tell me if anyone has the solution. - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation { NSLog(@"Callouts here"); } ...