iphone

Watching a YouTube clip with a UIWebView Causes Weird Results : No UIView Animations, Sound Stopped Working

Essentially, I'd like to embed a mobile website inside of my app which contains a list of YouTube clips. I've added a UIWebView to my ViewController, loaded up the site properly : - (void) setUrl:(NSURL*) newUrl { [newUrl retain]; [url release]; url = [newUrl retain]; [newUrl release]; NSURLRequest* requestObj = [NSURLRequest requestW...

how to have a sliding menu on the top of the page

hi, I am new to iphone programming. I was browsing through different apps at iTunes. Found this excellent menu. Can you folks help me to understand what is to be done technically to achieve this menu. The user can slide this menu from left to right or vice versa without disturbing the view in the bottom. how to achieve this ? Thanks in...

How to include 512X512 icon in my iphone app?

Apple HIG says I must include a 512x512 and a 29x29 icons along with the 57x57 icon. Now how do I "include" the large icons? I have Icon.png and Icon-Small.png files, but how do I include the 512x512 version of the icon? ...

How can I set a breakpoint on _NSLockError()

I am trying to debug multiple threads. *** -[NSLock lock]: deadlock (<NSLock: 0xc388ab0> '(null)') *** Break on _NSLockError() to debug. How can I debug this? ...

Stock symbol auto-complete API

Hi, I am looking for some stock symbol look-up API. I could able to query yahoo finance with a symbol & could able to retrieve the stock price & other details. I am looking for some auto-complete stock look-up API like if i query fo "Go*" ... how can i get all stock symbols starting with GO* = Goog etc ... is there any APi for wildc...

iphone tcp/ip via accessory port??

I'd love to be able to mod the iPhone tcp/ip stack to route packets over the accessory port either serial or better yet USB or Firewire... The applications I'm researching wouldn't be able to use WiFi, 3G or bluetooth... Custom apps could be written to use the serial port available via the accessory port, but it would be nice to suppor...

iPhone: custom UITableViewCell with Interface Builder -> how to release cell objects?

The official documentation tells me I've to do these 3 things in order to manage the my memory for "nib objects" correctly. @property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet; "You should then either synthesize the corresponding accessor methods, or implement them according to the declaration, and (in iPho...

iphone segmented control and uitableview

I have a UITableView with a segmented control at the top. When you tap on the different segments, I want the table to reload with a new different sized array. I have tried everything including [self.tableView reloadData]. When you click on a different tab now, it only changes the cells that are out of view and does not add any more. ...

Get random MPMediaItem of MPMediaTypeMusic with artwork

I need to get a small number of random MPMediaItems of the music type, but the songs have to have cover artworks attached. I figured might need to use an MPMediaQuery with a MPMediaPropertyPredicate. I could of course just call [MPMediaQuery artistsQuery] and then iterate through the results until some items that matches the criteria ar...

iPhone 4.0 API to invoke the phone lock screen?

Is there an API with the latest 4.0 SDK or earlier that allows an app to programatically invoke the iPhone's lock screen (the one that says "Slide to Unlock") ? ...

iphone social networking sharing functionality sdks

Hey there, I'm looking for an sdk that can be integrated into native iphone apps to add social networking sharing functionality. I'm familiar with AddThis, but it doesn't look like they have anything specifically built for the iphone. Any ideas? Thanks, ward ...

DTGridView losing content while scrolling

I am using DTGridView from the DTKit by Daniel Tull. I implemented it in a very simple ViewController and the test I am doing is to place a button in the last row of the grid, which should add another row to the grid (and therefor moving the button to a row beneath it). The problem is, when I click the button a couple of times and then ...

Why is uitableview underneath my uinavigationbar

I have a UINavigationController with a UIViewController (vc1) as the "root view controller". There are 3 views in the UIViewController: HeaderView(UIViewSubclass) UITableView (custom frame) FooterView(UIViewSubclass) The reason that the header/footer view are separate from the uitableview is because they need to be stationary a...

UIWebView is ignoring cookies?!

Hello everybody, I am creating an app for the iPhone that fetches a specific page from a website, but to be able to view this site you need to log in with a username and a password. I've created this code: NSString *urlAddress = @"http://www.wdg-hamburg.de"; NSURL *url = [NSURL URLWithString:urlAddress]; NSString *post = @"name=login...

UItextfield text alignment issue in cocos2D iPhone

Hi All, Please take a look of the following screen shot. Here is my code, I am using cocos2D CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2); _view = [[CCDirector sharedDirector]openGLView]; // Input the user name _nameField = [[UITextField alloc]initWithFrame:CGRectMake(130.0, 270.0, 200.0, 30.0)]; _name...

How do set the max NSURLRequest data size that gets cached?

On the iphone, I'm using NSURLRequest and NSURLConnection to download images into my app. asynchronously. I also want these requests to be cached. What I've noticed is that some of my images do get cached and some don't. I'v implemented the delegate method -(NSCachedURLResponse *)connection:(NSURLConnection *)connection ...

UITextView keep scrolling after every new line is inserted, so the lines are invisible (iPhone OS)

Hi all, I have UITextView and a situation that is problematic. I write line of text in the UITextView, and then press return for new line. What happen is, the line that i entered is moving up so i can't see it, and i am able to continue writing. This is bad behavior for me, because i need the line to stay, and only move up when i reach ...

-[UITableViewRowData isEqualToString:]: unrecognized selector sent to instance 0x391dce0

I have a datatable which shows the list of contacts. when I start the application all the data is loaded correctly.But after selecting a contact, I am sometimes getting this exception :- Program received signal: “EXC_BAD_ACCESS”. and sometimes -[UITableViewRowData isEqualToString:]: unrecognized selector sent to instance 0x391dce0 ...

CGLayer from an IUView

Hi On iPhone or iPad someone know how we can get a CGLayer (not a CALayer) from an UIView? Regards ...

Detecting Acceleration in a car (iPhone Accelerometer)

Hello, I am working on an iPhone app where we are trying to calculate the acceleration of a moving car. Similar apps have accomplished this (Dynolicious), but the difference is that this app is designed to be used during general city driving, not on a drag strip. This leads us to one big concern that Dynolicious was luckily able to avo...