iphone

Rotating UIWebView with transform, content partially off screen, how to get it to stick on screen?

I have a 320x416 portrait-shaped UIWebView filling a UIViewController's view. I also have a 90 degree rotate button that will transform the UIWebView through 90 degrees each time the button is touched. The code is basically: webView.transform = CGAffineTransformMakeRotation(touches%4 * M_PI/2.0); After rotation through 90 degrees, t...

iPhone, Core Data, Predicate with "self" problem.

Hi there, I need to reload a Person NSManagedObject before I pass it onto the next View. This is because the fetchedResultsController I'm using is only returning a subset of attributes and I need the full set in the next view. Thus far I'm trying something like: - (void)tableView:(UITableView *)tableViewPassed didSelectRowAtIndexPath...

Does dealloc get called on iPhone?

I have noticed whist learning how Cocoa-Touch works over the last few weeks that dealloc methods don't seem to be getting called when I exit the app in the iPhone simulator. Now to be fair I am not doing anything too scientific just putting in NSlog statements that can print to the console. My questions is: (1) Does the simulator discon...

Xcode iPhone project open source files to distribute

I've written an iPhone application and I'm planning to open source it. I'm concerned about distributing the source and making sure I get only the required files distributed. I'm also concerned that since I've signed my app for distribution on the AppStore that open sourcing the project would possibly expose some part of the singing cer...

Subclass of UIViewController initialising itself from a .xib can't use UINavigationItem?

Hi all, I've finally had to give up the relentless search for an answer to this question, as I just can't find anyone that's asked it before! So hope someone can provide some insight. I'll start by explaining what I can do, then compare that with what I can't figure out how to do. Suppose I have a custom VC called RootViewController. I...

iPhone view appearing behind animation

I have set up a multiview application with two views. The views can be switched using a button in each view (there are two separate actions). I am using the animation UIViewAnimationTransitionFlipFromRight, and when I go from the first to the second view, the view I am going to appears behind the flipping animation. I would like it just ...

iphone - programatically change navigation bar button to activity indicator

I have added a refresh UIBarButtonItem to my navigation bar on my iPhone app. When the user taps the button I'd like the refresh button to change to the animated activity indicator and once the operation (in this case a download) is complete switch the activity indicator back to the refresh button. I have added the refresh button using ...

All the app in iphone appear in a "grid icon" layout, how can I achieve that layout?

when u first open up iphone, all the app are layout in a "grid icon" type. And if u have too many app, the user swipe to the right, and the new view come out, with again all the app appear in a "grid icon" layout. Can u guys point me to where I can achieve such a design. Code would be very appreciated !!! I did try something and here is ...

iPhone NSURLConnection: connectionDidFinishLoading - how to return a string to the calling method.

Hi Guys, Could you please help me? I have reviewed similar stackoverflow questions/answers to this but I am still stumped. I'm a beginner and I'm really struggling with this. With the iPhone, I can download XML from a URL but I cannot store the result string in a NSString variable and see it from the calling function. I have the follo...

iPhone view hierarchy question: How do I draw views over the tab bar?

I am having some trouble with view hierarchies and drawing on the iPhone. To be more specific, I have a tab bar application with a certain tab that contains a table view where I would like the selection of a specific cell to have a UIPickerView slide up. The sliding isn't really a problem (or at least I'm assuming it won't be once I fig...

TTThumbView/TTPhotoView no autorotation

Hi, In my app I try to use the TTphotoView, so in a ViewController I push the TTphotoView with my navigationController like this: if(self.photoViewController == nil { PhotoViewController *viewController = [[PhotoViewController alloc] init]; self.photoViewController = viewController; viewController.hidesBottomBarWhenPushed = YE...

How to draw polygons with CGPath?

Hello, I have been reading thru the documentation however it is not immediatly clear to me how to draw a polygon using CGPath. All I need to do is to draw CGPath around something like this: __ \ \ \ \ \__\ Could anyone please provide an snippet on how to do this? Additionally I assume CGPathContainsPoint will help me determine...

Flip between Image 1, 2, 3 instead of Image 1,3 (iPhone SDK)

I'm using some pretty standard code to flip 2 UIImageViews that are inside a small view. (I'm amazed it worked!) But what if I had THREE UIImageViews inside a small view... and wanted to flip between all 3? I thought I could just cut/paste 2 copies of my code... but I guess not. When I try to flip 1>2.. and then 2>3... it just flips on...

Webview Keyboard

Hi, I am developing an application for iPhone which contains a lot of textfields to enter values.I like to use a keyboard with next and previous button like keyboard in webview for the text fields.Is it possible to do this?.Looking for a solution. Thanks in advance ...

MY XCode datatips are not showing up

I've got a little problem and I'm hoping someone here can help me out. I've used XCode pretty regularly for a while now and have made plenty of use of the Debugger datatips. All of the sudden today on a new project that I am working on, they are not there. The setting is toggled on under the Run->Debugger Display->Datatips menu, but they...

Add Text to the Image

HI Im currently developing an application where i have to add the text over the image at any position in the image(not subview) and the output should be the single image file with the original image and the text embedded in it,any help will be appreciable. eg : water mark on the image Thanks sivasankar ...

iPhone UIPickerView in UIViewController

I have a xib in which I have added a UIViewController named delta. The view under delta is controlled by the delta viewcontroller, not the file owner. On the delta view, I have a UIViewPicker. My issue is that I am programming in the UIPickerView in the deltaviewcontroller and I'm issuing deltaviewcontroller as the delegate and data sour...

Removing UITabBarController

Someone has posted a similar question to this with no resolution, but also no sample code. So, I thought I would post my problem in detail here. I have a game with several modes of play, each of these having several options. After playing around with various designs, it seems cleanest to put them into a UITabBarController with three tab...

commit object to next TableViewController

i got a tableview controller. if a cell is selected i perform the following: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ablogSingleCatTableViewController *singleCatTableViewController = [[ablogSingleCatTableViewController alloc] initWithStyle:UITableViewStylePlain]; // Push the detail...

High latency in an iPhone mmorpg

Right now I'm trying to make a mmorpg for the iPhone. I have it set up so that the iPhone requests for the player positions several times a second. How it does this is that the client sends a request using asynchronous NSURLConnection to a php page that loads the positions from a mysql database and returns it in json. However, it takes a...