iphone

How to implement iTunes built-in App "File Sharing" feature.

I've noticed that several apps, when an iP* is connected, has a "File Sharing" feature inside of iTunes. Example applications are CloudReaders, Stanza, etc. This interface lets users Add files to the app and Save files from the app to their computers. Right now I've got a HTTP server running inside the app which lets users add files to i...

NavigationViewControllers in ipad applications

Are NavigationViewControllers as relevant in ipad applications as in iphone apps, or are they less relevant as the window has place for multiple elements and not strictly a stack? ...

MFMailComposeViewController and privacy - hiding the To: field?

Hi, I am creating my second iPhone app, and I've included a feedback form using MFMailComposeViewController. This displays and works correctly, but I'm not sure I want all my users to see my email address. Is there any way to set the to: field to my email address, and then hide it so that the user doesn't see it? Many thanks, Javawag ...

Unit Testing Core Data - exited abnormally with code 134

Hello all, I am setting up unit testing for my core data app. I'm running into a strange problem in a pretty simple test. The error I'm getting is: /Developer/Tools/RunPlatformUnitTests.include:451:0 Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/Developer/usr/bin/otest' exited abnormall...

Specify two icon sizes in iPhone4/iPad app

Hello The iPad and iPhone4 both are armv7 (not 6), and I'm curious to know how to specify two separate icon sizes given that the target architecture is exactly the same. Specifying two in a typical universal app is simple, however I'm not sure how to do this. I can't find it in the documentation, although it may be! (Sorry if it is; ...

My iPad App Will Include a Twitter Widget. Will Apple or Twitter Have Issues With This Usage?

For the iPad imaging app I am writing I have include the ability to email a friend or send a Twitter tweet for world-of-mouth marketing. Here is what my Twitter widget currently looks like: Am I asking for trouble by using the Twitter logo in this manner? Will this send up a red flag in the Apple app approval process? Thanks, Doug ...

After upgrading to iPhone OS 4 my TableView scrolls to top after reloadData called

I have a UITableView that needs to be updated after a notification is posted. I do this by calling reloadData on the TableView. Before I upgraded to OS 4 the tableView would maintain its vertical scroll position. After upgrading to 4.0 it scrolls to the top after reloadData is called. Thoughts? ...

UITableView Detecting Last Cell

How can I detect when a tableview has been scrolled to the bottom so that the last cell is visible? ...

How to change the "category" of an enterprise-level iPhone app in iTunes from "Unknown Genre" to something more meaningful?

I have an enterprise app (thus not available to the general public in the App Store) that I have developed. When I put it into iTunes, it shows the nice icon (thanks to iTunesArtwork), but it displays "Unknown Genre" underneath it. How do I change this "category" (not sure what exactly to call this) to something else (and is there list...

iPhone Quartz2D render expanding circle

I'm curious as to the 'proper' method for achieving the following functionality using Quarts2D: I want to have a view, and to be able to add a circle at any coordinate. As soon as I add the circle it should expand at a predefined rate; I'd also like to repeat this process and have a number if these expanding circles. Think Missile Comm...

iPad/iphone font leading and kerning

I've searched on the Internet but can't find definite details. Is there anyway to specify leading and keening for uilabels, textfields or textviews? I could create custom fonts for each leading and keening pairing but this seems a bit overkill... Any ideas would be appreciated ...

iphone os 4 app is not working on ipod touch os 3+

after i complied my app on IOS4 my app stopped working on ipod touches. it is a first generation ipod touch, with os 3 on it. So i assume application for OS4 are not working on old ipodtouches ? but there was no warring from the app store and it is even listed for download for ipod touch too. any ideas ? base SDK is iphone device 4 an...

calling a function in view controller of Utility app

I am new to objective C and I have a c++ background. I want to display a value in the label on the screen. I am calling the label value from the MainView.m. However, the label becomes blank after I click a button instead of printing a value. What is the problem? Here is the code. MainView.h @interface MainView : UIView { int a; } -(...

Telnet connection on iPhone

I'm just wondering... I've downloaded this App called "Telnet Lite" for the iPhone where you can connect to your devices through Telnet. You just give up the IP address, server port, username & password. Works great. Now I'm wondering how this can be done (in code) on the iPhone. Can someone post a sample code where you establish a con...

iPhone HTTP live streaming

Have been researching the best way to tap into a live stream already being broadcast by S4C here - mms://media7.unique-media.com/s4c_uk_live (will open in something like quicktime) Need to know best practices to get this streamed to iPhone in development. Any pointers? ...

iPhone HTTPS post with xml header

Hi, I have to make a HTTPS Post with some XML data, but I need to send the XML in the HTTP header. Using the body I would do something like this request = [[NSMutableURLRequest alloc] initWithURL:url cachePolicy:CACHE_POLICY timeoutInterval:TIMEOUT_INTERVAL]; NSString *postLength = [NSString stringWithFormat:@"%d", [postData length...

How to determine the x/y screen location of the blue dot representing your current location in iOS?

Playing around with MapKit and I'm wondering ... Is it possible to determine where on the screen (the x and y) the blue dot representing your location sits as you move the map around? I recognize it starts out in the center of the screen ... but if you start to move the map it sticks with it. Thanks -wg ...

Focus on next valid key view on iPhone

Is there an iPhone equivalent for the NSResponder methods -selectNextKeyView or -nextValidKeyView from Mac OS X? I know about the -becomeFirstResponder method, but finding out which view to call that on is not very pretty when view hierarchies get more complicated. There must be some kind of way to find this out as when I press tab when...

is therea method like did select section in table view

i want to show data of section in a separate view if user touches that particular section.. can any body tell me how to do that? ...

Where to put code that needs to be exectued every time a Tableview (tab bar item) is selected

I would like to fill an array from a file every time one of my tableview's is selected in the tab bar. I dont think putting the code in the viewDidLoad method works, because the view gets loaded on once? Where should the code be placed? Within the viewDidAppear method? ...