iphone

Determining iphone upload/download speed programatically

Hello, I was wondering if anyone has a neat solution to getting the iphones upload/download rates programitacally in order to be able to set upload chunk sizes and things of the like...Any input on this? Thanks ...

How to format a double Value upto 2 decimal places in iPhone

Hi, I am extracting double data from sqlite3 database. But I want to display it only upto two decimal places. So how to truncate it. ...

How can a UITableViewCell know of its own indexPath?

The standard Grouped UITableView style allows UITableViewCells to be drawn with rounded corners at the top and bottom of each section. How is this accomplished? How does the cell know its own location within its section, and how does it know when to change its rounded edges? I want to make my own rounded cells, and I have images to us...

UITabBarController initializes with nothing selected

I've got a UITabBarController in my project that I'm creating programmatically - without a nib. I create the view controllers, initialize them, and then create an array of them and use the setViewControllers:animated: method on my tab bar controller. This works except that when it appears, my tab bar controller doesn't have anything sele...

Hover Over State for UIButton on iPhone

I successfully created a custom keyboard that functions similarly to Apple's keyboard. There is one thing that remains different. On Apple's iPhone keyboard the user can swipe their finger across the keyboard and all of the keys they pass though will pop-up. On my keyboard this does not happen. Swiping your finger across will just re...

How to block a UITableView Cell from being deleted in iPhone

Hello, I have a UITableView With Two Sections. First section has one row and the section one has variable number of rows which varies according to data entry in database. I want that user cant delete the cell from first section but he is able to delete the cells from the second section. I have implemented the commitEditingStyle method...

Best way to use my singleton

I started to develop my singleton class but I have a problem. What I want to do is have a search objects containing the values of the search form that I could use in several views. I want to have the ability to get the singleton in any view in order to perform the search or build the search form. So I have a set of values with a boolean ...

ModalViewController doesn't display during animation when paged scrollView is scrolled

My application has a paged scrollview. Each page of the scrollview has an instance of a view controller (buttonViewController) that shows a grid of buttons. If the user clicks on one of the buttons, buttonViewController launches a detailViewController modally, with animation set to YES. If I'm viewing the first page (furthest left) or t...

Grouped UITableView row animation quirks

Hi there, I've got a grouped UITableView with a couple of rows, and I'm animating a few more rows in and out on the toggle of a button. The problem is that with any of the row animation types I'm using (top & bottom) the animation looks horrible! Here's a screenshot mid-animation: Is there a reason why it's looking so bad? Or do all ...

iPhone - Can I dial a number without leaving the current application?

Consider a scenario where I'm displaying a restaurant menu in my app. I want to allow the user to dial the restaurant so they can call for takeout while they are still looking at the menu. In other words, I'd like the iPhone to dial and connect -- in speakerphone mode if possible -- without leaving my app and entering the phone applicati...

How to make first letter of NSString Capital in iPhone dev

Hello, I am having a NSString to which I am trimming at the start and end for blank spaces. Now I want to make the first alphabet or letter of the string to appear as capital. Is there any short available or I need to take the first alphabet and convert it to capital on my own. tnx. ...

Upside down text - Quartz/iPhone - CGContextScaleCTM

I am using bottom left corner instead of top left to draw on iPhone using the following: CGContextTranslateCTM(context, 0.0, 200.0); CGContextScaleCTM(context, 1.0, -1.0); While this works fine for changing my origin to draw a chart but labeling appears upside down. How do use my coordinate system but also get normal straight text to ...

Getting error when sending mail to more than one address using SKPSMTPMessage

Hi, I am getting error when i am trying to send mail to more than one email address using AOL account in SKPSMTPMESSAGE api. I can send with one receiver but i can send to more than one receiver. Getting message like "To address rejected". Does anyone has face this problem?. Thanks, iPhone Dev. ...

Setting language on iPhone application

Hi! I am working on an application which I am planning to release both in English and Spanish languages. With this I mean, I would like it to have two separate apps in the App Store, one being displayed with English title, and the other one with Spanish title (and each with contents in their respective language). This means that the la...

Write to Pastie or Pastebin?

I have an application I'm writing, in Objective-C(iPhone), and I want to be able to write a string of text to Pastie or Pastebin, and be able to have the link to that page. I have not been able to find any API for either of these, is this possible? How? Thanks! ...

UITextField in UITableViewCell - adding new cells

I am trying to create a table view similar to the YouTube video uploader view in the Photo Gallery on the iPhone. Here's the basic setup. I have a custom UITableViewCell created that contains a UITextField. Displaying the cell in my table works great and I can edit the text with no problems. I created an event hook so I can view when t...

Testing iPhone Software on Different Versions Of OS

Before submitting my app I want to test it on devices with the full range of iPhone OS available. So, I have 2 questions that I am struggling with and would greatly appreciate any help or advice. What versions of the OS are in use? I know that the App Store will only accept apps for 2.2.1 and 3 but all the features I'm using have been a...

Customizing the colors of a UISegmentedControl

Does anybody know of a way to customize the appearance of the string based UISegmentedControl? I am trying to set the background color of the cell and the text color differently depending on the selected state of the item. Alternatively, do you know of a way to create UIImages on the fly in which to include custom strings? (e.g. create...

What's a Java alternative to Google App Engine for developing iPhone Push Notification services?

I'm a Java programmer who is working on an iPhone application. I'd like it to use Push Notification services. I originally thought I could use Google App Engine to provide the payloads to Apple, but I see now that it won't be possible because App Engine doesn't support the low-level socket programming that is needed to communicate with...

Selective Autorotation within a UINavigationController and UITabBarController

Greetings! Here's the scenario. Starting with a navigation controller (and no tab bar is present - it is hidden from a previous view controller push), I init a new view controller and push it onto the nav controller stack. This new VC contains a lonesome UIView into which I programmatically add a UIScrollView with the same frame. (I wan...