iphone

iPhone SDK: How to make 3hg app iPad Compatable?

From Apple Review Guidelines https://developer.apple.com/appstore/resources/approval/guidelines.html iPhone apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution I tried running my app on the iPad simulator. I thought it would be centered in the iPad screen but it was instead in the upp...

Pull Menu in CocoaTouch

Hi Everyone: I am attempting to make a UIView/UIControl that people can drag up and reveal a text box, and then drag down to hide it. However, I have yet to find a method to make this "fluid" - it always seems to stop at random places and doesn't allow any more movement. At the moment I am using a UIView for the top part of the view a...

Web apps /pages urls iPhone Home screen

Hi All, Is there a way to get the URL of a web app or page if it has been added to the Home screen on iPhone? I added a web app to the home screen and forgot the actual URL Many Thanks ...

play video from URL retrieved from ALAsset in iOS

I'm still fairly new to Obj-C and the idea of blocks. I read this post about displaying images from url retrieved from ALAssets: http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone Besides being able to view picture files in a UITableView using the ALAsset framework, I want to be able to pl...

how to login from the iphone to my rails app?

I've my rails app using authlogic for user session, I'm building an iphone-app as client of this site, how can I do with the login\logout\session management? I know that's a common question but I've tried to look for it everywhere but I can't find anything clear and useful thanks ...

Code to save and load files works on EMU but not the device

Hi guys, I am using some code to record and save some audio. Then play it back later. It works perfect on the Emulator, but on the device the file is size 0. I am thinking maybe there is something I am missing. Here is my path where the file gets saved to, and loaded from. On the phone : /var/mobile/Applications/8CE3099A-0CA6-411F-B...

Load rtf or text file into UITextView iphone sdk

Hi i was wondering how should i load rtf or text file into UITextView i use several codes but did't work , NSString* filePath = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"txt"]; myTextView.text = filePath; thank you . ...

Running app continuously in background on 3GS and 4

Hi, In order to run the app continuously in the background on the 3GS and iPhone4 on OS4.1 is it simply enough to call BeginBackgroundTask in the DidEnterBackground callback and then NOT call EndBackgroundTask ie to leave it running. I understand this will run the battery down but that is ok as my users will be running on power. If th...

MKMapView problems after zooming into the map

I have a map that dynamically shows annotations as the user moves around. I am using the method regionDidChangeAnimated to know when the map has been moved and then I get annotations based on the new latitude and longitude. If the user zooms out then I am clustering the annotations. I want to have it so that when a user clicks on a ...

Anyone know of a Daitch-Mokotoff implementation in Objective-C / C++ / C?

I want to compare user inputs with a string from a database. As I expect users to misspell all the time, I want to compare with a certain amount of slack. Apparently, Daitch-Mokotoff have developed a system that is rather precise, more so than Soundex. Does anyone know of an implementation of this system that will run on an iPhone (pre...

iphone: iui tutorials

where can i find some good tutorials on Iphone MVC asp.net iUI? any recommendations? ...

How to get the Template Chooser/Document Browser view on iOS?

What is the view used to create the Template Chooser view in the iWork apps on iPad? How can I create a view like that on iPad, and what would be a best way to implement it on iPhone considering screen size constraints. ...

Dynamically loading images in UIImageView from database in objective c

I have saved my images in database with type BLOB. Now I am extracting these images from database using sql stmt and saving it in a NSData object. see the following code snippet NSData *img = [[NSData alloc] initWithBytes:sqlite3_column_blob(loadInfostmt, 4) length: sqlite3_column_bytes(loadInfostmt, 4)]; self.birdImage = [UIImage ima...

EXC_BAD_ACCESS in iPhone app - memory management issue

For reference, I've already read: http://stackoverflow.com/questions/2981374/memory-management-question-releasing-an-object-which-has-to-be-returned http://stackoverflow.com/questions/3835464/iphone-return-nsmutablearray-in-method-while-still-releasing http://stackoverflow.com/questions/1250651/releasing-objects-returned-by-method-in-o...

Views and buttons unresponsive to touches after rotation

I am coding against iOS 3.0 and I am trying to add rotation (landscape) support to my app. Everything about the rotation was easy enough. However, after rotation to landscape mode from portrait, the right-third of the screen (480-320) is unresponsive to all events (touches, drag, etc.). I've verified that the key window is receiving th...

UILabel backgroundColor in UITableViewCell always reverts to initial value

In my app, I have a UITableViewCell which is used to display a background color setting. In the detailTextLabel, it displays the name of the color with the background set to the actual color, e.g. [UIColor cyanColor]. Note that I am setting the background of the detailTextLabel only, not the whole UITableViewCell. When users tap on the c...

Clipping in MKOverlayView:drawMapRect

I'm having an issue with drawing to areas outside of the MKMapRect passed to drawMapRect:mapRect:zoomScale:inContext in my MKOverlayView derived class. I'm trying to draw a triangle for each coordinate in a collection and the problem occurs when the coordinate is near the edge of the MKMapRect. See the below image for an example of the...

where to start developing iphone / mobile applications in php?

Hello, I'd like to develop an iphone application using my knowledge of PHP. I know of some frame works like appcelerator that maybe able to help (have problems installing appcelerator though). My question is, what framework do you recommend? Also, I've noticed some apps appear to simply open a safari browser and run, what "type" of a...

Adding a UIButton in the header of UITableView header

I need to place a button immediately above a dynamically populated UIViewTable. It feels right to not populate the first cell (row 0), but rather utilize the header area, so I use the UITableViewDelegate method to programmatically create a UIView containing a UIButton: - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSectio...

Objective-C datatypes and HTTP stream header contents?

I am trying to read out some values from response headers from a Shoutcast stream. In the following code, what datatypes should my variables be when reading the values? *datatype* header = CFReadStreamCopyProperty(stream, kCFStreamPropertyHTTPResponseHeader); *datatype* varname = CFHTTPMessageCopyAllHeaderFields(header); EDIT: U...