Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kaydell.leavitt

macrumors regular
Original poster
Apr 19, 2010
100
0
Hi,

I'm making a specialized business calculator.

I would like to implement my own push buttons instead of having a keyboard come up from Cocoa Touch.

How can I do this?

I mean that when the user touches a UITextField, I want the focus to go there, but I don't want any keyboard to appear. I want to use my own rounded-rectangle buttons.

Thanks.

-- Kaydell :)
 
Thank You for Your Help

Thank you for you help.

Give me 8 years and I'll be an iPhone demigog :D

Kaydell
 
Possibly a simpler solution is to use a uilabel and display your buttons on the screen. Attach the buttons to an action which string combines the uilabel and value of the button.
 
The Input View Property Requires SDK 3.2 or Later

Thanks for the suggestion zed2, but I have a margin analysis calculator which has 3 UITextFields because the user enters any two values and calculates the third so a single label won't work.

It looks like I need to upgrade to the 3.2 SDK to get the InputView property solution to work.

Thanks to both of you for your help. I think that this issue is solved now.
 
It looks like I need to upgrade to the 3.2 SDK to get the InputView property solution to work.

This is an issue: 3.2 can only target the iPad. I imagine that property is also available in 4.0 for the iPhone but you may not have access to 4.0 yet and you can't submit apps built with 4.0 yet either...
 
Does 3.2 Require Snow Leopard

Does 3.2 require Snow Leopard (I only have Leopard).

-- Kaydell
 
I'm Running the Version of XCode That Came With Leopard.

I'm running the version of XCode, IB, and the iPhone simulator that came with Leopard, 3.1.2.

OK, I'll have to pay the $30.00 and do a 4 hour download to get SDK 3.2.2. I realize that 4.0 is out to developers and will be released in the summer, but I'm just a newbie at iPhone OS development.

-- Kaydell :apple:
 
I'm running the version of XCode, IB, and the iPhone simulator that came with Leopard, 3.1.2.

OK, I'll have to pay the $30.00 and do a 4 hour download to get SDK 3.2.2. I realize that 4.0 is out to developers and will be released in the summer, but I'm just a newbie at iPhone OS development.

-- Kaydell :apple:

Before you do that note my remark above: 3.2 cannot be used for iPhone apps.
 
Is There Another Solution

Yes, I'm getting side-tracked and ahead of myself. Someday, I want to develop for the iPad, but for now, I'm developing for a second-generation iPod Touch.

Is there another solution to my initial query on this thread? (I really can't have a keyboard popping up.)

Is there another solution besides using a feature that isn't available to me yet?

-- Kaydell
 
Would a Category Work

What if I used a category to modify what a UTextField does so that the keyboard doesn't popup; then, I could just use some rounded-rectangle buttons in that same view.

Would that work?

-- Kaydell
 
Wait a Minute

If I disable the UITextFields, then I won't be able to tell which one that the user touched and the user won't see a cursor in there either.

Right?

-- Kaydell :confused:
 

Attachments

  • Picture 2.png
    Picture 2.png
    109.9 KB · Views: 91
  • Picture 4.png
    Picture 4.png
    129.7 KB · Views: 98
I recommend that you work with the existing keyboard implementation in 3.1.3. The keys on the keyboard you show are the same as the numeric keyboard except that you add the decimal point and enter key.

What other apps have done with this problem is to either add keys to the background view so that they're available when the keyboard is visible or they add an accessory view with extra keys that looks like the keyboard and slides in at the top of the keyboard view. Apple has rejected apps that actually modify the keyboard view itself but adding your own view that slides in with the keyboard view is ok.

If you develop for a later version of the OS that adds better support for customization of the keyboard at some point you can update your code.
 
Thanks

Thanks, I'll do that. It's simple enough for me to add a single decimal-point button, it just doesn't look so good.

-- Kaydell :);):)
 
I Believe that SDK 3.2.2 *Does* Support the iPhone and the iPod Touch

My download of the iPhone SDK just finished and it seems that earlier in this thread that we concluded that the 3.2.2 was only for iPads. This is not so.

The confusion stemmed from talking about how to develop apps that only will run on the iPad.

3.2.2 *does* support a universal app (see the picture below), but it *does* require an upgrade for me to Snow Leopard.

-- Kaydell :)
 

Attachments

  • Picture 7.png
    Picture 7.png
    120.9 KB · Views: 103
There Are Two SDK Versions: 1) Development and 2) Deployment

If you'll look at the picture in my last post again, you'll see that there are two versions 1) Development and 2) Deployment.

I believe that I can develop with the 3.2.2 SDK and deploy to the 3.1.3 SDK.

-- Kaydell
 
We Were Right About Snow Leopard Being Required

I tried to install the iPhone OS version 3.2.2 on my Leopard Mac but it doesn't install. (See picture below in this post).

I believe that the upgrade from Leopard to Snow Leopard is only $30.00 USD.

-- Kaydell
 

Attachments

  • Picture 8.png
    Picture 8.png
    180.8 KB · Views: 96
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.