iphone

How to use Time Profiler Instrument with iPhone Device

Hey all, I'm trying to get Time Profiler to play nice with me. I am able to set it up with my iPhone and capture data. However, Instruments doesn't really show much information about where the virtual bottlenecks exist in my code. If I click on the memory addresses to show more detail Instruments tells me that they're unavailable. How ...

Any way of changing the duration of zoomToRect for UIScrollView?

Is there any way to specify a duration for the animation of [UIScrollView zoomToRect:zoomRect animated:YES]? At the moment it's either fast (animated:YES) or instant (animated:NO). I'd like to specify a duration, eg [UIScrollView setAnimationDuration:2]; or something similar. Thanks in advance! ...

Some Problems about Http Live Streaming

I have a video website on Mac Os X. I can watch these videos on my iPhone through Http Live Streaming with wifi.I have divided the source video into 10 seconds of media per file. When I watched the video using one iPhone, there's no buffering tip.However, using three more iPhones to watch the video at the same time, it always show buff...

Parse kml example?

Hey just wondering if there was an example anywhere to do this ? I know KML is just like XML and can be treated the same. Also I know you can use NSXMLParser , and this is a great example for XML http://www.iphonesdkarticles.com/2008/11/parsing-xml-files.html ...

Saving Movies from AVCaptureVideoDataOutput Video Frames

With the new video features in AVFoundation that are included with iOS4, it is possible to access the raw video frames as they are captured by the camera by using AVCaptureVideoDataOutput. I would like to overlay text and other information on top of these frames, then output them to a movie file which at some point will be saved to the...

Default.png problem with iPhone OS 4?

What should Default.png contain? Currently it seems that iPhone OS makes snapshots of the screen before closing the app, and next time it launches with that exact snapshot as "splash screen image". A guy here in Russia told me that this is only happening when Multitasking works on the device. What would I show in Default.png now? I don...

Is it possible to programmatically change the Default.png launch image?

Is it possible to programmatically change the Default.png launch image? For example, could I replace it by an other image that fits better? My app has a tab bar and every tab has a very different screen, and I want to recover to that particular tab after a hard launch from scratch when the app got terminated in the background. ...

How to let the app load with Default.png only when it is launched from scratch?

Example: My Default.png image shows the start screen of my app with an empty interface. When the app is launched from scratch the first time, this is cool. It appears like it started quickly. But when the user quits it and the app just goes to background, and then the user opens it, this sucks. Then I always end up with a wrong "snapshot...

how to move table view in navigation controller

i hav a navigation controller and when i place a image for navigation bar by hiding it the table view which is below nav bar is moving upside and first row is hided by image ,i should want that (row)table to move down ... if i am not hiding nav bar its working correctly and the image also added above the nav bar perfectly but i am not...

I don't know why my view is freezing

Hi there! I have a big problem since a few days that I can't solve. First I have a login view controller with this code : @implementation MMConnectionViewController @synthesize login, password, activityIndicator, mainVC; - (BOOL)textFieldShouldReturn:(UITextField *)aTextField { [aTextField resignFirstResponder]; [self performSel...

Richer iPhone Interfaces With Library Components?

Hey, My iPhone development is stepping up a notch and I'm looking at the UI. We're thinking of having a few nice interface-y features - things like dragging and dropping images onto one another from a gallery list, or similar. How far does the basic iPhone interface stretch? Do most people create their own interfaces and code, and if s...

Merging photos - iPhone SDK

I am making an app that adds a picture frame to a photo. I would like to know how to have my Save button save both Images (the photo, and the frame) as one Image. Right now it only saves one of the images. In interface builder I have the save action saving the image that is loaded into an ImageView, with the frame ImageView overlay...

Rendering A Texture Onto Itself In OpenGL ES

I can comfortably render a scene to a texture and map that texture back onto a framebuffer for screen display. But what if I wanted to map the texture back onto itself in order to blur it (say, at a quarter opacity in a new location). Is that possible? The way I've done it is simply to enable the texture: glEnable(GL_TEXTURE_2D); glBin...

iPhone Core Data Migration With Multiple Models

Hi, I have two models at my project, I want to allow versions to one of them. Here's what I did: Selected the modelOne.xcdatamodel then Design > Data Model > Add Model Version. Clicked command + i then add version to modelOne.xcdatamodel inside modelOne.xcdatamodeld Modified modelOne.xcdatamodel, just added some attribute. At the del...

Strange behavior with URL fragments and onclick in iOS Safari

I have run into a strange problem in mobile Safari on my (iOS 4) iPod touch. The minimum body HTML to demonstrate this problem is: <p> <a href="" onclick="event.preventDefault()">Click</a> </p> <p id="anchor"> Anchor </p> When the page is loaded with no # fragment in the URL, clicking the link executes the onclick javascript, ...

MPMoviePlayerController "thumbnailImageAtTime:timeOption:" selector does not exist

This code MPMoviePlayerViewController* mp = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; int i=0; unsigned int mc = 0; Method * mlist = class_copyMethodList(object_getClass([mp moviePlayer]), &mc); NSLog(@"%d methods", mc); for(i=0;i<mc;i++) NSLog(@"Method no #%d: %s", i, sel_getName(method...

Properly displaying and dismissing fullscreen MPMoviePlayerController in iOS 3.2 (iPad)

I'm having lots of trouble displaying a fullscreen movie in my iPad app and then allowing the user to dismiss it with either the Done button or the "un-fullscreen" button on the player controls. Initially I was using MPMoviePlayerViewController for the movie presentation, but I wasn't receiving the enter/exit fullscreen notifications fr...

Writing 64 bit int value to NSOutputStream

I'm having trouble communicating position coordinates to a set of motors I have connected on the network. I can send a string just fine, and receive text back from the motor, but I can't seem to send it an int value. Using NSlog I have determined that the actual value I'm sending is correct, however I suspect my method of sending it via...

how to change view in rotted view(Landscape View) + iphone

i'm trying to implement a uiview in landscape view; but that view is not RootViewController.xib file it is Other file of mah project ;it's possible to change in landscape view but only in RootViewController file; so i wont to change view in landscape but in other uiview file mah code is ===>> (BOOL)shouldAutorotateToInterfaceOrienta...

Iphone: threading issue ?

I am initialing a dictionary in viewDidLoad and using it to create table view cells. The first load works fine. But as soon as I scroll the table view to see the item (not displayed at the bottom) the app crashes. Through the Debugger I noticed the address of the dictionary item "rootItemsDict" changes when I did the scroll. Not able to...