iphone

Wrapping a web app up as an iPhone app?

The question says it all-how hard is it? Is it allowed? Any other comments? Thanks! ...

Setting an delegate for the UIDatePicker animation?

If I had a date picker within an action sheet and called the following line: [datePicker setDate:newDate animated:YES]; And then my app hides the action sheet the date picker is within, is there anyway to set up a animation delegate so that the user see's the animation of the date picker first and then hides the action sheet? I have d...

UIView with rounded rectangle and drop shadow: shadow appears above rectangle

I've got a uiview subclass where I'm trying to draw a rounded rectangle with a drop shadow. Though it draws both elements, I can see shadow through the rounded rectangle fill. I'm new to CG so I'm probably missing something simple (though it doesn't seem to be the alpha of the fill which is set to 1). Here's the draw rect code. - (vo...

iPhone - Keyboard hides TextField

I am using UITextField to receive user inputs. However, since my textfields are towards the middle/bottom of the nib, it gets hidden when the keyboard pops up. Is there any way sort of slide it along with the keyboard so that it's on the top of the keyboard during selection? Also, since I am also using the numberpad, is there an easy way...

When adding objects to a uitableview datasource array, how can I update the tableview while still onscreen?

I have a view controller that allows users to add an nsstring to an array that is the source for a uitableview directly underneath the add string uitextfield. I want to add the string to the uitablview as soon as its added to the backend array. ive tried a couple different things and im not really sure how to do it. my feeling is that i ...

Multiple NSFetchedResultControllers for different entities?

I'm checking out the default Xcode template for an iPhone Core Data project. In the method that returns the fetched result controller I see this: - (NSFetchedResultsController *)fetchedResultsController { ... NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForN...

Save And Load A Single Value, iPhone

Hello all, I have a feeling there is a simple way to do this. I have a number between 1 and 100 and it is stored in a variable called firstValue. This variable is then put into a UILabel. When the user exits my app, I want this firstValue to be saved so that when the app is loaded by the user this number can be re-inserted into the UILa...

How do I get selected background color from SecondView to pass to FirstView?

I am going insane! This is a simple app with two Views. FirstView is a text field with info button to flip to SecondView. In SecondView I have 6 buttons for background color choice. When button is pushed the color of background changes perfectly but cannot make it also change background color for FirstView. Any help would be GREAT! ...

Two different instances of the same class are confusing variables

Hi, Why do two different instances of the same class are using their variables as if they where static variables? I do not want to synthesize those variables. But without synthesizing- both instances refer to their variables as if they where the same one. Any way to go around it? Why is that so? Thanks- Nir. ...

facebook connect - automatically login

I want my iphone app automatically logs on to Facebook so that the user only once have to log on Facebook(not at every startup!). I need this feature, because I want to built in a friends highscore and a post-function and it would be annoying always to log in for checking the high score. One example what I mean is the app "Doodle Jump". ...

iPhone & Ipad - UIGetScreenImage - how to capture in lanscape?

Apple recently decided to allow developers to use this UIGetScreenImage private API. I have implemented it and it works fine in portrait, but when I run the device to landscape (self.view rotates) and UIGetScreenImage continues to capture using the screen non-rotated coordinates. The result is a cropped landscape result. UIGetScreenI...

UITextViews that don't suck

Hello all, I'm looking to customise the behaviour of a UITextView quite dramatically - adding in regex-based highlighting, line numbers and find and replace - as I essentially want to create a text editor on the iPhone/iPad. I've been looking through the UITextView reference but it seems to be very restricted, not very customisable at ...

warning message with detailed subviews?

Does my code look right? Im trying to load data into my table view and detailed sub view. My table works fine, but the data wont load in my sub view The warning appears under this line nextController.dataItem = [data objectAtIndex:indexPath]; Here is my RootViewController.m // Configure the data for the cell. NSDictionary *...

iphone sdk - weird bug with TableView Cell

Hi guys I'm working in cellForRowAtIndexPath, and I'm trying to embed a textview into the cell. Now, the embedding part is all well and fine, but I am getting the strangest problem when I try and load the textview in all but the first row. Note: I want The TextView in all but the first row in my table. The problem is that when I implem...

The correct way to declare, alloc, load, and dealloc an NSMutableArray

I declare my array in my *.h file: @interface aViewController: UIViewController { NSMutableArray *anArray; // You will need to later change this many times. } @end I alloc memory for it my *.m file: -(void) viewDidLoad { anArray = [[NSMutableArray alloc] init]; } I click a test-button to load my array (eventually it will...

Download a File - iPhone SDK

Hello everybody, I am sort of new to developing view-based iPhone applications, and I need to download this "txt" file off the internet and save it into the documents folder of the app. Can anyone show me simply how I can do this? The txt file is of a tiny size, so I wouldn't need any User interface objects... Thanks, Kevin ...

How do I give my parsing code access to my ManagedObjectContext?

I'm writing an iPhone app which fetches an XML file, parses it and then saves the parsed objects to Core Data. I've got everything working up to the point where I save the objects to Core Data. I imagine it's got something to do with how I'm referencing the ManagedObjectContext but I can't figure out where I'm going wrong. I've looked...

How do I fill the background color of a UITableViewCell?

How do I fill the background color of a UITableViewCell? I tried this code but it didn't work. cell.backgroundColor = [UIColor redColor]; ...

Facebook Connect iPhone StreamDialog delegate dialogDidSucceed

Hey. I use FBStreamDialog to let users publish on their news feed. [fbStreamDialog show]; makes the dialog view popup, the user can press cancel or submit that message. Now...my problem is that both buttons close the dialog view and call the delegate method dialogDidSucceed. How do I find out which button was pressed? Its very i...

Core Data: UITableView with multiple NSFetchedResultControllers

What I want to do is pretty simple. In my UITableViewController, I want to load data from multiple NSFetchedResultControllers (I have multiple entities in my data model) and put data from each one into a different section in the table view. So for example, all the fetched items from the first NSFetchedResultController would go in section...