iphone

Objective-C, how do i convert a double to an int ?

I must be doing something really obviously wrong, but I can't see it. ...

Video capture on an iPhone; captureOutput delegate never called

Hey folks. Trying to get started with iPhone video capture stuff, and having a terrible time getting it going. At the moment, working with an exact copy of the sample code from this Apple Developer Q&A: qa1702; not going to re-paste it here, since it's a relatively big blob of code. In any case, I copied and pasted that code into an o...

fetching data on the iphone

Hey i am developing an iPhone app of a existing PhP mySQL website. i want to know, how to pull data from database and display on the phone? after going through several articles , i found out two ways.. 1) create a web service, on server end, which will provide all the data in XML format to the device. 2) export php,mysql data in JSON f...

Can I reposition an MKAnnotationView that's already been placed on a MKMapView?

Every few seconds I'm retrieving an updated lat and lon for a real-world object that is in motion. This object is represented on my MKMapView by an MKAnnotationView. Is it possible to smoothly animate the object's movement from coordinate to coordinate, rather than remove its current MKAnnotationView and add a new one at the new coordi...

Using CSS @font-face with the iPad/iPhone

I'm trying to use the font-face attribute of CSS with a custom font: @font-face { font-family: "Handvetica"; src: url("Handvetica.eot"); src: url("Handvetica.ttf") format("truetype"), url("Handvetica.otf") format("opentype"), url("Handvetica.woff") format("woff"), url("Handvetica.svg#Handvetica") format("svg");...

iOS YouTube and Safari-like movie player

This is probably a dumb post but I've Googled it for about an hour now and can't find anything about it anywhere... I'd like to know how I can have a little movie "square" similar to the ones presented in Safari to play Quicktime Movies or YouTube movies. I'm talking about that :). Is that an Apple private API or can we use the API? ...

Shadow doubling in custom UITableView - how to remove?

I'm trying to build a custom UITableView with custom cells and headers. I have a subtle problem - when the table view's Cell scrolls underneath the Header, the shadow gets doubled. The header and the cell are both PNGs with transparency, and behind the table is a gradient that I want to show thru. See the edge of the table in this scre...

image scrolling on touches in iphone

Hi, iam developing an app in which, images are to be scrolled on touchesmove i.e, swipping left /right. I also have to display previous and next images beside present image in protrait mode. I have seen the covertFlow sample, which is very close to my app, but i want it in horizontal mode. Please suggest me how can i acheive it , link...

Possible to move UITableView's index?

I'm using the sectionIndexTitlesForTableView method for my custom UITableView, to display A-Z on the side of my table. However, the standard view of this doesn't match the style of the table. Is there a way to change this, or at least move the index a little? Here's how it overlaps: ...

Find a point, a given distance, along a simple cubic bezier curve. (On an iPhone!)

Imagine you have a completely normal four-point bezier curve (two points and two control points) created using curveToPoint:controlPoint1:controlPoint2: in your cocoa application. Here it is: How do you find points, along the curve? So, starting at the StartPoint, what are the x,y coords for a point that is distance D along the curve?...

iPhone Safari CSS image-background rendering bug

Hi guys, I spent lot of hours trying to figure out the following mystery that is happening on iPhone with rendering my rounded corner box. It is a simple technique where there are 3 divs and basically 3 parts of the box: top, middle and bottom. Where the middle is repeating on the y-axis and top and the bottom are absolutely positione...

iPhone SDK Random Numbers

Hi I know I can get a random number for example from 0 to 700 using: arc4random() % 362 But how can I get a random number in between for example 200 to 300? Thanks. ...

read version from info.plist

I want to read the bundle version info from info.plist into my code, preferably as a string. How can I succeed? ...

how do I know when UIKeyboard Join button is tapped?

How do I know when a user taps on the Join button on the UIKeyboard? Also can this text be changed? I know there are several built options but I nee done that says 'Login' if I can. ...

iphone app - UDP

Is it possible for an iphone to send UDP messages through an IP on port 3330? Thanks! Elijah ...

how to change image when clicked on tableview cell iphone

i have a tableview. i add image to the cells when clicked on the cell in didselectrow method by using cell.conteview addsubview. but the problem is if i click on 1st cell it changes the image and when i click on another cell image will appears but the old image is not removed from the previous cell. This is happening for all cells in tab...

Best platform for Bluetooth Applications

Which Mobile Application platform do developers prefer for Bluetooth Based application development ? What do developers think on the current available API's on these platforms ? Does it meet most of your needs ? What kinds of APIs / capabilities for applications would you like to see. ...

how to load the images in my view dynamically in a scroll view in iPhone

Hi all... i want to display many images like thumbnails in a scroll view and and i want the images displayed dynamically we scrolls down or left like a table view cells can u please tell how to that... Thanks ...

iPhone, how can I store / load one value on a simple table view settings screen?

Heres my cellForRowAtIndexPath where I've loading a value for a row, instead of a value from a simple array and converting it to a row. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusabl...

iPhone - UIView's backgroundColor - using a png with transparency?

I'm setting the background color of my UIView (which is within a UIViewController) as follows: myView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myTransparentBG.png"]]; I've even tried messing with [myView setOpaque:NO]; but the image doesn't appear transparent. It has a black background to it. Am I abel to...