iphone

IPhone SDK - Bluetooth capabilities

Hi all, with the current version of the iPhone SDK, is it possible to establish a bluetooth connection to any other bluetooth device, or are there restrictions? A customer wants an iPhone app to get specific data from another device via bluetooth. This device is measuring some chemical stuff and has a bluetooth interface. So the custom...

iPhone & iPad - two icons and two plists?

I have a product with two targets, one for iPhone and the other for iPad. I will build two separate applications, not universal. As I will have to have two icon.png files for the application's icon, as they differ in size, as I see I will have to have two info.plist files. right? I have created two copies of the info.plist file, named ...

image effects iphone sdk

are there any tutorials for creating image effects in iphone? like glow,paper effect etc Can anyone tell me where to start? ...

UIColor not matching RGB

I have an image in Fireworks. I am using the picker to choose the color and then look at the RGB values. I am putting these values into UIColor:colorWithRed:green:blue:alpha but it is not giving me the same output. I am using values between 1.0 and 0.0. I am trying to get a dark blue color, the UIColor is giving me a very light blue. ...

UIViewTableController: "EXC_BAD_ACCESS" When Scrolling Up/Down Past the Max Position of the Table

I received an EXC_BAD_ACCESS when I try scroll up past the top or scroll down past the max position of the table view. This does not happen when tableview is empty but as soon as I add data to table cell and try to scroll up or down to far, I get an "EXC_BAD_ACCESS". Is there a way to prevent the user from scrolling too far? ...

Good examples in open source iPhone applications.

Hi, I'm looking for good examples of open source iPhone applications. Not tutorials, but complete applications that made it to the appStore. So far the best I've seen is http://github.com/c99koder/lastfm-iphone - a LastFM client, a very well designed app, and I am curious if there are others like it. Any suggestions are welcome! Thank...

How to Cache Elements in iPhone

Hello iPhone Gurus, I wrote a RSS based application that will fetch some XML files, parse them and throw them into a table view. I'm using the NSURLConnection and the NSXMLParser in order to connect and parse the XML content. I would like to cache those results so that once the user connected once to the application he could disconnec...

Peform selector when ViewController gets shown?

Hi! I'm loading a view controller like this: [self presentModalViewController:webViewController animated:YES]; It works but when I call it a second time the view is the same (of course). I need to perform a selector after the modal view controller gets visible again. How can I do this? Thanks Philip ...

iphone dynamically add a section to a tableview

I have a tableview actings as a settings or preferences panel (see below). The name of the setting (for example Address) is the header of the section the setting is part of. My question is if I want to allow the user to add her own setting how should this be done? I was thinking of adding a "+" button on a toolbar and having a modal v...

Any examples of how to use FFmpeg to play wma stream in objective c ?

Hi I have been searching, but just can't find of how to use FFmpeg to play a WMA stream in Objective C. Does anyone know of any ? Thanks for your assistance. ...

Reloading TTableView after DataSource items are added

Hi, This is the code of my initializer: if (self = [super init]) { self.title = @"Posts"; self.variableHeightRows = YES; //XLog(""); PostsDataSource *dataSource = [[[PostsDataSource alloc] init] autorelease]; [dataSource.delegates addObject:self]; [dataSource load:TTURLRequestCachePolicyMemory nextPage:NO]; ...

iPhone : making UIBarButtonItem that is arrow shaped

Hi there, I have a UIBarButtonItem on a navigation bar. I'd like to make it arrow shaped. By that I mean I want it to be square except for a pointy side. Does anyone know how to do this? Thanks! ...

How do I detect when a UIActionSheet has been dismissed?

I'm pretty new to iPhone dev, so any help is appreciated. I am creating an action sheet within a function and adding it to the current view. I have the sheet delegate as 'self' and the action sheet is not retained. Is there a function like the datePicker's didSelectRow? Something like "didDismissWithButtonAtIndex" or something that lets...

iphone sdk: application icon not displaying in simulator

I added an Icon.png to my Groups and Files in Xcode for my project. I specified in the .plist file to use Icon.png. I checked the root folder and it successfully copied Icon.png. But when I run the simulator the icon on the home screen is still gray? Also note, when I first added the icon it worked! Then I changed the Bundle Name, Bundl...

iPhone ABPeoplePickerNavigationController - How to select two single entries of two different multivalue properties of a person from Addressbook

Hello everyone! I'm near desperation as I search for a solution for weeks now. The Problem is simple: Via the ABPeoplePickerNavigationController (as a ModalView), a person should be selected. Then only (e.g.) the Mail addresses should be shown and the user should select one. After selection of a Mail address just the (e.g.) phone nu...

Why does my UIWebView only display the first 512 pixels of content?

Hi, I'm having a really confusing problem. I have a UIWebView that is contained within a UIScrollView (I'm using a UIWebView because there are some hard returns that need to be displayed) and to ensure that the app looks "clean" I'm using [UIWebView sizeToFit] after the content of the WebView had loaded. The problem is that the content...

TouchesBegan and TouchesEnded with Multitouch issue

I'm using TouchesBegan TouchesMoved with Multitouch. I have a manual implementation of what is essentially a button. I bounds test on the point of TouchesBegan to set the button as down and the same for TouchesEnded to reset it. The problem is if the user moves the finger out of the bounds of the button before lifting then the Touches...

iPhone: Linker Errors with External Files

I've added some files to my project. The sample code runs elsewhere but when I build my project it returns the errors below. Building target "test" of project "test" with configuration "Debug" - (31 errors) Linking /Users/kshan/Desktop/test/build/Debug-iphonesimulator/test.app/test (31 errors) "___gmpn_sub_n", referenced from:...

sizeWithFont doesn't give correct height for UITextView if there is a long string in the text being wrapped

Is there a way to get the correct size of an NSString using: - (CGSize)sizeWithFont:(UIFont *)font forWidth:(CGFloat)width lineBreakMode:(UILineBreakMode)lineBreakMode that doesnt get thrown off by 2 or 3 hundred character strings. At the moment if I try to use this method on these long strings it incorrectly calculates them and I end...

UINavigationController autoresizing views behavior

I've read in Apple's documentation about UINavigationController's resizing behavior and it hasn't been much of a problem until now. I have the following code to set up my UINavigationController's view: navController.view.frame = CGRectMake(0, 40, 320, 420); and this is sufficient until the view is obscured by a modal view, at which po...