iphone

Passing Several NSStrings to another view - Iphone

Hi In my iPhone app, the user will be making multiple NSStrings. Once these are made, I need to pass them to another view completely in the app. How can i do this? All I know at the moment os I can't access objects or variables declared in one view, in another. Thanks. ...

Check function exists - Lazy Symbol Binding Failed

I'm using a method CGPathGetPathBoundingBox that is only available in iOS 4.0. I'm doing a check against NULL to see if it is available as suggested in Apple Docs but I'm getting the following runtime error: dyld: lazy symbol binding failed: Symbol not found: _CGPathGetPathBoundingBox Referenced from: /Users/.. Expected in: /Developer/P...

insertSubView: is not showing my views

I am stuck in a tutorial, trying to switch views with a toolbar. My code builds fine and I put some alerts in to check the toolbar was working, and it is. But my subviews I am inserting are just not showing up at all. Can anybody help please? Here is my main controller code.. MainViewController.h is #import @class FlavourPickerVie...

UIWebView is crashing at the end of loading a page that contains embedded YouTube clips in iOS 4.0x

When I load a page that contains embedded YouTube clips in a UIWebView managed by a modal UIViewController then I crash out with this stack trace: OS Version: iPhone OS 4.0.2 (8A400) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 Crashed Thread: 0 Thread 0 Cr...

UIScrollView Always animating!

Hi Everyone! I have a little problem with UIScrollView. Basically, I'm using the code from the PageControl sample app with some modification. I'm adding the scroll view to my navigation stack, I want it to be on a specific page when it gets there. I am trying to use the UIScrollView scrollToRect: animated: method, but even though I pass...

Makin an array of Objects in Objective-C.

Hi guys, Been playing around with Xcode for about 2weeks now, and reading about MVC a bit. I have a problem trying to connect the Model to the Controller because I find it hard to get my head around arrays. I can handle simple arrays when i programmed some in Java but I'm quiet intimidated by the Obj-C NSArrays i see. If somebody woul...

How to get user defined background color in three20's TTTableViewController

Hi there, having a TTTableViewController instance, I try to set the background of the currently selected cell. I am aware of the style sheets concept in Three20, but it just offers: - (UITableViewCellSelectionStyle)tableSelectionStyle { return UITableViewCellSelectionStyleGray; } with standard options UITableViewCellSelectionStyl...

iphone installing Ad Hoc Distribution

Hello guys I try to install my app. to client's iphone via "Ad Hoc Distribution". When i sync, I got this type of error: "The application is not installed on iphone because it is not signed" Please help me to resolve the problem. Thank you! ...

Has anyone used Janrain's auth on iPhone?

We use Janrain's authentication on our site for our users, and we are now working on an iPhone app for the service as well which will require us to be able to be authenticated so that we can talk to the servers. Has anyone actually used janrain's iPhone libraries successfully on the iPhone? I'm having a lot of different troubles with it,...

How to make a transparent UIWebVIew

I have an app with a UITableView and a corresponding detail view for each row. In the detail view I have to display some text and a background image (text is different for each row, but the image remains the same). The easiest way, in my opinion, is to put the text in an .rtf file and display it in a UIWebView. Then just put a UIImageVie...

How to recreate the iPhone app store application detail view?

I'm trying to get a view that is similar to the the application detail view presented in the app store but I can't figure out how it is implemented. It looks like a UITableView with 3 or 4 custom cells. Does that sound right? Any insight would be great. Thanks. ...

GKSession alloc / release / alloc = leaks and crashes

I've got an app that throws out the GKSession and makes a new one under various conditions (connection timeout, session fails, etc.). I'm getting memory leaks, though, and it sometimes crashes after a few loops through the reconnect. Here's my code: - (void) netConnect:(id) sender { NSLog(@"allocating GKSession"); currentSes...

how to detect if an array isnt empty?

I am trying to detect if an array isn't empty in order to be able to do a certain call. I tried using if (![array ==nil]) however that doesn't compile. I'm sure there is a really easy explanation to this. Update If array is empty I want to do this: array = [[NSMutableArray alloc]init]; If it has an object I want to do this: array =...

Swipe to delete vs. edit button tapped on iPhone

I set up my viewController to use the edit button in the way Apple recommends: self.navigationItem.rightBarButtonItem = self.editButtonItem; When the user taps the edit button, it causes the setEditing:animated: method to trigger. In this method, I add or remove a "new row" depending on the editing value (i.e. a row the user can tap t...

Flame transition effect for iphone image

How would you impelement the following? 1. Image is loaded from a file 2. On Touch the picture burns in flame. 3. Next picture loads from another file. How would you make the flame transition? ...

Getting the real width of a tableview cell during -tableView:heightForRowAtIndexPath: when there is a section index present

The proper height for my custom UITableViewCells depends on their width. Unfortunately, it is difficult to know the actual content area width of a cell in -tableView:heightForRowAtIndexPath:, since the only information I have to work with is the tableview. Several factors can change the content width so it is not equal to tableView.bound...

How to create SOAP messages ? How to convert a soap message to an object?

1- How do i create soap messages to communicate with a web service? Let's say my client needs to send a request to a web service, Do i generate the FULL soap string and then send it to the web service, including header, body, envelop etc? 2- Let's say the web service sends me back a SOAP response, the response contains information about...

Having trouble copying data to a mutable array

I keep getting the error "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[MainViewController minimalFormInContext:]: unrecognized selector sent to class" from this line of code: NSLog(@"Accessing specific mine entities"); NSEntityDescription *entity = [NSEntityDescription entityForName:@"Mine" inMa...

ViewController displaced vertically by 20px after modal is dismissed: iOS4 Only. Example code included.

Hello - I hope someone can help... This issue has been discussed here and I have tried the solutions suggested but to no avail. My problem is best illustrated using the example project which can be downloaded from this URL: http://www.hitsalive.com/tmp/VCTest.zip In the example project I have a main viewcontroller with two buttons use...

contentOffset of UIScrollView during rotation

I want to manually update the contentOffset of an UIScrollView during rotation changes. The scroll view fills the screen and has flexible width and flexible height. I'm currently trying to update the contentOffset in willRotateToInterfaceOrientation, like this: - (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa...