iphone

Create masking effect over a view

I would like to create a masking effect over a UIView in order to accomplish the following. I will display a sealed box in the screen and the user will be able to touch (scratch) the screen in order to reveal whats behind that image(UIView). Something similar to those lottery tickets where u r suppose to scratch some cover material thats...

iPad/iPhone HTML5 video loading

I'm trying to load on the fly on the iPad/iPhone and notice that I cannot place a div above this. I put the overlay in the html so that it's generated on page load and not added via javascript and the video when its created is absolutely positioned below this element. This works on a PC, I'm wondering if since it was created via js th...

UIPickerView issues - iphone

I have the following: - (NSInteger) numberOfComponentsInPickerView:(UIPickerView *)pickerView { return 2; } - (NSInteger) pickerView:(UIPickerView *) pickerView numberOfRowsInComponent:(NSInteger) component { return [genderPickerData count]; return [agePickerData count]; } When I do this, the UIPicker is split into ...

In which situations does a managed object context have changes?

In which situations does a managed object context have changes? What can happen that -hasChanges returns YES? ...

How to simulate the delete key on UITextField?

Hi, I'm creating an application on the iPad. I create a custom keyboard using UITextField's inputView property. To insert text at the cursor position, I use the copy & paste method (http://dev.ragfield.com/2009/09/insert-text-at-current-cursor-location.html), which works fine. Now, I want to create the delete key. The code that I'm usin...

Sleep command in tabbar based application is not working properly

HI , i am working on a tab bar navigation based application. once the application loaded i am loading a RSS feed content from a site in its first tab. I am using autoreleasepol to load the RSS feed inside the view controller and i have the sleeping time as 2 seconds, but the initial loading screen taking more anywhere between 3 to 7 se...

iphone: Accessing Code for Elements Created in Interface Builder

I am attempting to create a basic tab-bar application using interface builder. I create a new project in Xcode selecting tab bar application. My question is how can I access the code that instantiates and pushes each of the views when the tab bar buttons are pressed? I would imagine that would be done by the tab bar controller, however ...

User Database Script for iPhone API interaction

Is there any kind of PHP script that has a user database with custom tables that I can access through a RESTful API? I am wanting to create an iPhone app that interacts with the user database.. such as register, login, update info... Any ideas? Thanks! ...

How to get day and date?

i want to get date in 2 labels like this Label1:-> Tuesday Label2:-> 2 June 2010 how can i get this value? ...

How can I add two UIBarButtonItems to UINavigationItem?

I want two rightBarButtonItem's on my UINavigationBar. How can I accomplish this? ...

Why doesn't IB see my IBAction?

I've been staring at this for way too long. There's nothing fancy happening here, and I've done this dozens of times, yet Interface Builder steadfastly refuses to provide me an action target for -(IBAction)slideDirections. I'm at the point where I'm willing to post publicly and feel stupid. So let 'er rip. Here's my .h: #import <UIKi...

Animation on the iPhone

I am coming from a long spell as a Flash developer, and find simple code-based animation on the iPhone much more difficult than in Flash using actionscript. There are several excellent free class packages called "animation kits" available for actionScript that abstract the core animation code into simple one line method calls that allow ...

UIDatePicker date method is picking wrong date: iPhone Dev

Hi, I am getting very strange behaviour on UIDatePicker. I have a view with date picker declared in .h file as IBOutlet UIDatePicker *datePicker; with property nonatomic and retain. datePicker is properly linked in IB file. In the code I am setting the minimum, maximum, initial date and action to call for UICOntrolEventValueChanged us...

Is Core Data using the Ghost pattern?

All this fault and faulting stuff appears to look pretty much like the Ghost pattern. Is that the same thing? ...

Iphone: RSS with Images in tableView

Hello! Im trying to make an rss-app, with the feed in a table, each row with a title and an (thumbnail) image. I have everything working fine with just text, but i can’t seem to get the images to show up... Can somebody please help me with this? It would mean a lot to me!!! My xml data looks like this: Henin slumps to defeat by Stosu...

Drawing image at touch iPhone sdk

Hello, I would like to draw a image on the screen where ever the user touches. I can't figure out how to do it. Please help thank you! ...

AudioQueue in-memory playback example

Does anybody know of any examples using AudioQueue that play from an in-memory source? All the examples I can find play from files (using AudioFileReadPackets) but in my particular case I am generating the data myself in realtime so ideally, I want to enqueue the data myself rather than sucking it out of a file using the callback. Any ...

UIScrollView in a TabBar controlled navigation - IPhone

I have a TabBarControlled view navigation and i want to display a UIScrollView in one of the Tabs, but whenever i click on this tab the error-code: ...this class is not key value coding-compliant for the key... appears. My code: Code: #import <UIKit/UIKit.h> @interface BillViewController : UIViewController <UIScrollViewDelegate> {...

UITableView having one Cell with multiple UITextFields (some of them in one row) scrolling crazy

I have a UITableView (grouped). In that tableview I have several UITableViewCells, some custom with nib, some default. One Cell (custom) with nib has several UITextfields for address information, thus also one row has zip-code and city in one row. When I get the keyboard the tableview size seems to be adjusted automatically (vs. another...

iPhone: Error and error handling confusion in comparison.

NSArray *results = [managedObjectContext executeFetchRequest:request error:&error]; if(results == nil){ NSLog(@"No results found"); searchObj = nil; }else{ if ([[[results objectAtIndex:0] name] caseInsensitiveCompare:passdTextToSearchFor] == 0) { NSLog(@"results %@", [[results objectAtIndex:0] name]); searchO...