iphone

The iPhone function selectRowAtIndexPath doesn't work on UITableView when the item is offscreen

It works fine when the cell to select is visible in the scroll area. If it's not in the currently visible scroll area, then it has never been loaded via cellForRowAtIndexPath, and it doesn't get selected. And isn't scrolled to. What's up with that? This is on the iPhone 3.1.2 Simulator. Thanks, Tom. ...

UIView rotation, modal view lanscape and portrait, parent fails to render

Hi everyone, I've hit a bit of a roadblock with something that I hope that someone in here can help me out with. I'll describe the 'state of play' first, and then what the issue is, so here goes; I have a series of view controllers that are chained together with a Navigation Controller (this works just fine), All of these view control...

iPhone sockets - 3g vs. wifi

Hi, I have developed a trivial example application leveraging the example CFNetwork code listed here, http://dev.im.ethz.ch/wiki/Socket_communication_on_the_iPhone and combined it with the SpeakHere example on the apple developer site. Using this I have managed a very, very crude mechanism to stream audio to my server. It works sur...

uiimage and uibutton release problem?

I've been coding for a while now in objective-c and am comfortable with it... but one thing eludes me. Memory management. I'm releasing as I think is correct, but this bit of code is throwing a "EXC_BAD_ACCESS" and crashes the app. When I comment out and DON'T release the button and image, it works fine. The function is called to read t...

iPhone Compass Programming

Hi, I am developing an compass application for iphone 3GS. I have used CoreLocation framework for the compass method I have used... - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading ...method for getting the heading. My question is how to get a value like "315° NW, 90° E,140° SE" without...

Java RMI equivalent in Cocoa ?

I need to port a Java Application which uses RMI to Cocoa Touch ( iPhone/iPod Touch ). It's a small application, maybe 600 lines of code thanks to the RMI simplification. But I was wondering what are my options to replace the RMI code in the iPhone/iPod Touch platform. Thanks!. ...

How can I know why my iphone app crashes and what is taking too much resources to make it crash?

Program received signal: “0”. warning: check_safe_call: could not restore current frame What is this error? Is there a testing device for the iphone app to know which program element is taking the resources to make the app crash? ...

Moving subviews inside a UIViewController

Hi, I'm developing an application where it has multiple view controllers added as subviews (around 5) inside rootviewcontroller.I want to move those subviews from one place to another using touches (Exactly like the "MoveMe" app given by apple sample code).I tried using "MoveME" code to move my subviews which I couldn't do it.. Can anyo...

How to attach outlet to UISegmentedControl in UIToolbar

I have a view in an application. The view contains a UITableView and a UIToolbar, and within the UIToolbar I have UISegmentedControl that is contained within a UIBarButtonItem object. I can get the segmented control to link to an IBAction event, and it then acts upon a value change, but I cannot see how to add an IBOutlet to this item. ...

bounce an image in to view

I have some code which works nicely and acts like a menu appearing when you click a button. I just want to animate slightly. So when it appears, it appears to bounce in. Here's the code which shows it [UIView beginAnimations:@"theAnimation" context:NULL]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelecto...

Single-Stage vs Two-Stage Animation for iPhone Apps?

What are single-state and two-stage animation for rotating an iPhone window? This is the "error" message I get in the Debugger Console (nothing crashes): Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations. I was working through the book "Beginn...

Inserting PDFs in SQLite

I am developing offline implementation of an iphone app. I cannot insert pdf files into sqlite DB. can anyone help me to insert pdf/xls into sqlite DB. Thanks in advance! ...

UIScrollView zoomToRect not working

I have a UIScrollView with pagingEnabled on and I want to (using like a button or something) animated(ly) zoom to each page. I am using zoom to rect, but that's not working. Please help. ...

iphone like button flow

I'm really impressed with the way the iPhone manages scrolling lists (such as through play lists). I was wondering how I could impelment something similar and what I should read up on before trying to? I'm more interested in the mathematics behind the motion, the interpolation and such rather than implementing it for any given system. ...

Convert .caf files from stereo to mono

How can I convert my .caf sound files, in stereo, to mono ? ...

How do I look at the text value of a label?

Hello I am really getting frustrated now! I have a new problem now, all I want to do is say if lblMessage.Text = "30 Seconds" then do some code otherwise do some other code if (lblMessage.text isEqualToString:@"30 Seconds") { NSString *strPlayerAtTable = [[NSString alloc] initWithFormat:@"%@ at table", ActivePlayer]; lblMes...

Problems returning the correct pid from facebook.photos.upload in fbconnect for iPhone SDK

I am using facebook.photos.upload to upload photos direct from my application into facebook albums. This is my current code:- NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease]; [args setObject:self.facebookString forKey:@"caption"]; UIImage *image = ((iPhotoFitViewController*)self.cameraPickerControlle...

Trying to add a Vibrate and Sound to my Alert View

One thing I've learned at engineering school is to always to intense validation of input. I think it's great that with the iPhone SDK you can create a sound and a vibrate option. I would like to put both of these into my Alert View, which shows when the user doesn't fill in a field correctly. However, I'm getting a ton of errors. Is it ...

iphone UIWebView Unicode Arabic Html Slow Rendering

Hello Guys, i use the UIWebView to load Arabic Html, using UTF8 Unicode, but the rendering is deadly slow, so is the scrolling. on the contrary when using English Html, everything works more reasonable. any advice on how to render unicode Html on the UIWebView?? Appreciate your Help! Thanks. ...

MKMapView in a UITableView and editing

I have a UITableView with two sections that needs to be editable. The first section is a few cells with text, numerical and date content that are provided a separate view controller for editing the values. The bottom section is jst one cell that displays a custom cell which has a MKMapView. This cell is used to visualize the location f...