iphone

Xib view scrolling?

Hi, i have one Xib view file...if i want to include labels more than the height(420)...how can i do it.. how can i bring scroll feature when i enable with VIEW CONTROLLER? ...

Weird functioning of Application event in iPhone

Hi, iPhone app shuts down when ever any call accepted by user. When call ends, app will resume. I want to capture that event when app resumes after call ends. Howsoever I have tried: on App delegate: - (void)applicationWillTerminate:(UIApplication *)application - (void)applicationDidFinishLaunching:(UIApplication *)application - (void)...

question regarding the click event of UIButton

how to find that my button's event is Touch Down i want to do function like this if(users click on touchdown event) { NSLog(@"a"); } else if(users click on touchupinside event) { NSLog(@"b"); } ...

Memory leaks with UIWebView and NSURL: already spent several days trying to solve them

I have already found a lot of information about how to solve memory leaks for iPhone Obj C code. The last two leaks keep me puzzled, I'm probably overlooking something. Maybe you can spot it. Instruments reports 2 leaks for the following code (part of a UIViewController subclass): (1) UIWebView *webView = [[UIWebView alloc] initWithFr...

Get MP3 info from remote file

I was playing around with the iPhone SDK and I wanted to get mp3 info from a remote file: NSString *filepath = @"http://www.server.com/legal.mp3"; CFURLRef audioFileURL = CFURLCreateWithString(NULL, (CFStringRef) filepath, NULL); AudioFileID audioFile; if (noErr != AudioFileOpenURL(audioFileURL, fsRdPerm, 0, nil)) { NSLog(@"Error - : c...

How do I fix PhoneGap build errors?

I am trying to build a PhoneGap-based iPhone application, but I keep getting the following two errors: ./build-phonegap.sh: line 6: ./configure: No such file or directory cp: lib/iphone/phonegap-min.js: No such file or directory I built and installed the latest version of PhoneGap from the source on GitHub. I have checked to make sure...

Delayed UIImageView Rendering in UITableView

Ok, I've got a UITableView with custom UITableViewCells that each contain a UIImageView whose images are being downloaded asynchronously via an NSURLConnection. All pretty standard stuff... The issue is, when the table scrolls, the new images are downloaded in the background correctly but not RENDERED until the table stops moving. How ...

Block touch propagation to other view

Hy, I have a childe view that put it self over other brother views. The problem is that when i touch it the brother also reacts at the touch event. How can I disable touch propagation on the underlieng brother views? ...

save selected row in UITableView after reloadData

I write custom jabber client in iphone. I use xmppframework as engine. And I have UITableViewController with NSMutableArray for repesent contact list. When i receive(or somebody change it contents) roster (aka contact list) i wanna change UITableView items (add/remove/modify). So if User work with listView at time when list updates by...

Objective-C NSURL URLWithString appears to fail when using variable

So this is my first posting on StackOverflow, so excuse me if my request is not well formed. I am attempting to load a variable with type NSString into an NSURL with the following line: audioPlayer = [[AudioPlayer alloc] initPlayerWithURL:[NSURL URLWithString:aArchiveItem.streamURL] delegate:self]; And in AudioPlayer implementation I...

iPhone animation efficiency solutions, layering questions

I'm working on writing a rather basic app. It uses minimal touch input, and mostly just plays fancy animations. There isn't much animation, but the way it's currently done seems super inefficient and uses far too much memory. The view is split into two parts, the bottom 1/5th is just one image that doesn't ever change. The rest of it i...

Capture the preview of a UIImagePickerController

This has been asked many times. But most answers are not applicable to the latest OS (3.0+) or they are "Apple will reject it". What I need is to programmatically grab the image displayed in the preview of the UIImagePickerController without having the user take a photo and use the image - what I actually need is to get a screenshot of ...

iPhone - dataWithContentsOfURL: does not work for some URLs

Hi I am using NSData to get content from a URL (RSS feed) and then parse it. While most of the URLs are loaded fine, some of them don't return any data. These URLs open on the web so I know they are valid, but they just don't return any NSData. One such URL - feed://jpl.nasa.gov/multimedia/rss/rovers.xml Here's how I am using it (the ...

Why doesn't delegate/datasource show in IB?

I have a uiviewcontroller declared like this: @interface RootViewController : UIViewController<UITableViewDelegate, UITableViewDataSource> I've dragged a tableview onto the rootcontroller's view. When clicking the File's Owner, all I see is tableview. Where is the delegate and datasource, which need to be connected for the tableview...

How to I style a UIToolbar to look like the standard iPhone camera toolbar?

The iPhone camera toolbar is gray and has a slight gradient. I believe I could achieve the same look by setting the tintColor and/or translucency of the toolbar. Any idea how I could make my toolbar look exactly like the camera one? This isn't quite right... too dark: UIToolbar *tb = [[UIToolbar alloc] initWithFrame:frame]; tb.tint...

Is this a UIKit bug?

I am not sure if this bug really comes from my app or maybe really is a UIKit bug. Maybe someone here can clarify this. There is a tableview. Each cell offers a disclosure-button to a "settings"-like screen that is a modal view. The modal view can be closed via a "Close"-button. The modal view contains a UITextView. Now here comes the...

OpenSource library to make OpenGL ES GUIs on the iPhone?

I'm looking for some kind of OpenSource library that allows me to make OpenGL GUIs on the iPhone ( for example the game menu , and some in-game pieces of interface like a player inventory ). Does anyone know if some sort of library/middleware exists for this ? A very big commercial example of this ( not for the iPhone ) would be: Scal...

Date formatting inside the uitableview section heading, PLEASE HELP

Let me start off by saying Im VERY new to iphone development, but Im trying really hard to learn, so any help any of you professionals out there are willing to share is greatly appreciated! So I have a question that would be SO awesome if someone could answer for me. I am studying up more one core data and have been using the core data b...

Add a button to the Camera Toolbar on the iPhone

I am using a UIImagePickerController subclass to take photos in my app. The toolbar for the camera has a cancel button and a photo button on it. I would also like to add another button on the right. I have tried to add a UIBarButtonItem to the subclass's toolbar, but that doesn't work. I have also tried to make a UIToolbar that looks l...

How to save and read a CGLayerRef, in a NSmutableArray

Hello, i have a question about the CGLayerRef "elements" ( because they are not object !) In my app, i want to store a list of CGLayerRef created from bitmaps, for obtain a good framerate on my DrawRect. how can i store and read the CGLayerRef in this code ? This is the code for store in the NSMutableArray CGLayerRef imageLayer; ...