iphone

Audio data streaming having latency issue in iPhone

Hi, I have written a voice streaming application in iPhone using AudioQue. At the audio recording starts I initiated the network connection and pass the instance of NSAudioOutStream to AudioInputCallback using inUserData reference. void AudioInputCallback( void *inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer, ...

Change title of UItabbaritem in other view?

How do I change the UITabbaritem titles when starting the App? I got a UITabBar with 4 tabs. I want the user to be able to change between two different languages. If the user chooses a different language I need to set a different title to the UITabbaritems. I know I can use self.title = @"title"; but that only changes the current tabbar...

How to identify slowing code in application

Hi there, I've got an appli where images are touched and replaced once touched. not quiet complex but the response time of the touch and the replacement is really high and I'd like to find a way to detect where/why the appli is slowing down... what could I do to identify the code portion that is slowing the app ?? ...

How to set the popup keyboard to only show certain keys?

How do you set the popup keyboard to only show certain keys when you type into a textfield? I know there are default keyboards but none seems suitable. Is there an alternative input option? Thanks. ...

UITouch-Events with different views - no more events

Hi, i´ve created a custom-uiview-class. There i create my view and handle my touch-events. I´m look for a "touchesBegan"-event. If the tapcount > 1, i want to create an additional UIImageView which holds a UIImage (and fills complete the old view) where the user can zoom that image. So if the tapcount is only 1, i´m getting output in ...

jQuery Processing to iPhone Native?

Is there a way to convert processing apps to native iPhone app's? Alternatively... there's a nice jQuery library for processing, but can that be used with the various cross-platform "develop using HTML/JS, get a native app" conversion? ...

Programmaticaly create ad hoc network with iPhone

I Perfectly understand that this is not allowed by the App Store Policy but is programmaticaly possible to create ad hoc wireless network with the iphone SDK, with "is possible" I mean if the iPhone 3G and/or 3GS hardware support this "feauture" and if exists some kind of low-level api to do this. This question does NOT contemplate the j...

MPMoviePlayerViewController repeatMode not working?

Hi! I have a problem with MPMoviePlayerViewController and it's property repeatMode. It's stated that setting it to a MPMovieRepeatModeOne value will cause player to repeat playback. I use following code to play video in a loop but it just stops after the end. MPMoviePlayerViewController *mpViewController =[[MPMoviePlayerViewControlle...

a line break in a UITextField?

is it possible to put a line break in a UITextField or would I have to use UITextView? thanks ...

Memory / Obj-C proper object release. Which of these requires release?

Alright, this is an elementary question but I'm asking because I honestly don't understand how to properly manage this. If I uncomment the last two lines, this code crashes, even though I don't think it should. The following code is from a custom subclassed UILabel where I added the following method, setTextFromFloat. -(void)setTextFr...

moving/updating MKOverlay on MKMapView

is there a way to update (i.e. moving around) a MKOverlay that is already added to the MKMapView. Removing a old one and adding a new one is terrible (slow). i.e i would like to trigger the background function that is calling this function when an overlay moves on the screen: - (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverla...

UITextView inside UIScrollView scroll problem

Hi guys, I'm experiencing something considered a bug in my situation. Probably this is not a bug but a feature ;). Here's my case: I load a UIScrollView with my content. A part of my content is loaded asynchrone after the view is already loaded. This works great and without issue. Some of these controls however are UITextView controls...

[iPhone Map Kit] Custom overlay on Google Map?

Hi Guys, a general question, is it possible to have a custom overlay (or more than one overlays) above the Google Map using iPhone Map Kit? Thanks for any comments. ...

iPhone SDK: Is viewDidUnload called on dealloced viewcontroller?

Is the viewDidUnload method called even if the view controller is dealloced? It seems natural that it´s not called, but I cannot find an answer. In that case objects released in the viewDidUnload: also need to be released in dealloc, right? ...

NSPredicate - Not working as expected.

Hello, I have the following code in place: NSString *mapIDx = @"98"; NSLog(@"map id: %@", mapIDx); NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"WayPoint" inManagedObjectContext:managedObjectContext]; [request setEntity:entity]; //N...

Transitions between different HTML pages using JQTouch for iPhone

Hi, I am trying to create a simple iPhone application using HTML/JavaScript/CSS with the help of JQTouch and PhoneGap. For accessing different parts of a web page, the transitions work fine, however when I try to do the same for different web pages, they do not work. I am doing this: <li><a class="slide" href="http://www.flickr.com/p...

Cache a whole website on an iPhone

Is it possible to cache a whole website (with all the images, styles etc), save it and display in a UIWebView offline later? If it is possible, how can I do it? Thanks in advance! ...

making compatible 3.1.3 simulator application to 4.0 simulator application in iphone

hello sir I create my project on 3.1.3 simulator it's work properly but when i run my project on 4.0 simulator and on device it doesn't work properly it give me succeeded message but doesn't give me out on the screen .Help me out from this condition how to make 3.1.3 program computable in to 4.0 simulator and device. ...

iphone : objective-c : how to compress NSString ?

Hi, i want to compress an NSString. how i can do that in objective-c ( iphone ). Thanks in Advance .. ...

Objective-C Design Question. Proper use of Observers? Events? LF code strategy advice.

Okay this is a design question. I, like many, are still learning Objective-C and Cocoa, and am a little rusty to boot. Anyway, here is the question: Assume I have a ViewController class 'A'. Assume I have a "Camera" class 'B', which is a singleton. Assume I have a UILabel class 'C'. The ViewController 'A' has knowledge of the "Camera" ...