Category: iPhone Programming

Programming – Entering in a price of an item – Help

By , February 20, 2011 9:46 pm
I am trying to accomplish the same interface as Grocery iQ has for entering in a price of an item. They have a Table View with a custom Table View Cell. I think the custom cell has a label over a text field so the decimal is always visible. If you type in 125 it displays 1.25 on the screen. Does anybody have any idea how to do this?
One other thing I would like to know when you click on the “back button” the value entered ($1.25) is sent back to a label on the previous view. How do you do this?
Any help on either of these 2 question would be appreciated.
This is what I want it to look like.

Working on my First iPhone app!

By , February 16, 2011 11:09 pm

I started my journey almost 2 years ago, trying to learn the programming languages to write an iPhone app. It was harder than I thought. But all that time and effort has paid off. I am working on my first iPhone app now. I hope to have it in the store by the end of summer.

Now that I’m at this point I’m gonna post more stuff on my site about Objective C and iOS programming.

[ccilang="objc"]
for (i = 0; i < zz; i++) {
NSNumber *temp = [[NSNumber alloc] init];
temp = [array objectAtIndex:0];
for (j = 0; j < zz; j++) {
if ([temp isGreaterThanOrEqualTo:[array objectAtIndex:j]]) {
temp = [array objectAtIndex:j];
k = j;
}
}

[sortArray addObject:[NSNumber numberWithInt:k]];
[array replaceObjectAtIndex:k withObject:[NSNumber numberWithDouble:9999.99]];

[temp release];
}
[/cci]

WWDC Live Coverage

By , June 6, 2010 11:36 am

Here are a few websites and twitter accounts that will be covering WWDC.

Websites Covering WWDC

Twitter Accounts Covering WWDC

iPhone OS 4 Live Event Coverage

By , April 8, 2010 10:57 am

Here are some links for to follow Apple’s iPhone OS 4 Live event today

TUAW
Engadget
Gizmodo
MacWorld

Apple Releases iPhone 3.2 SDK – No Leopard Build, Only Snow Leopard?

By , April 3, 2010 9:59 pm

I just logged into Apple’s Developer section to download the new iPhone 3.2 SDK and to my surprise there is no build for Leopard, just a build for Snow Leopard. After digging around in the iPhone SDK Release notes I found out that Apple isn’t going to release a build for Leopard.

iPhone SDK 3.2 provides support for developing iPad applications and includes the complete set of Xcode 3.2.2 tools, compilers, and frameworks for creating applications for iPhone OS and Mac OS X. These tools include the Xcode IDE and the Instruments analysis tool among many others.

With this software you can develop applications that run on iPad using the included iPhone Simulator, which runs iPhone OS 3.2. Additionally, you can develop applications for iPhone and iPod touch, which run on iPhone OS 3.1.3. (This software does not include all of the iPhone OS 2.x SDKs.) Installing iPhone SDK 3.2 requires a Macintosh computer running Mac OS X 10.6.2 (Snow Leopard) or later.

This means if you want to write apps for the iPad you will need an Intel Mac and Snow Leopard. I would also assume that this means the new iPhone 4.0 SDK will be the same way.

Where Do I Start with iPhone Programming?

By , July 17, 2009 9:38 pm

There are so many websites out there telling you different places to start. This is were I started and were  I am currently with writing my own iPhone App. Its been a long hard process and I had to start at the very beginning. I didn’t know C Programming, which is the basic language you need to know to start writing for the iPhone. The iPhone uses Cocoa Touch and Objective-C programming language, know C programming just makes it easier. On my trip I been reading a few books. Here is a list of books that will help you with your apps.

I still have a long ways to go before any of my apps make it into the iTunes Apps Store. If there are any books or resources that you might think that would help, please let me know.

iPhone App Setting location

By , July 5, 2009 1:33 pm

I’m starting to dislike iPhone apps that put their settings in the setting section of the iPhone. Am I the only one? I hate it when I need to change the settings and I have to leave the app and go to the setting section and then go back and load the app again.

SettingSettings2

I know it gives you more room for other things on the user interface, but the little exclamation point doesn’t take much room. I know I might change my mind when I start working on my app. I’ll deal with that when the day comes.

Harder than I thought, my journey to write my first iPhone App.

By , June 17, 2009 9:35 pm

OK so I been trying to learn how to write an app for the iPhone and its going pretty steady. I’m in the third week of my journey. I started with learning the C Programming language and now I am reading Learning Objective-C on the Mac and both languages harder to learn than I thought. I didn’t expect to read the book and know everything about either language. But now that I know what each language has in-store for me. I’m ready for more, but It might take a little longer than I thought.

Week 2 of my journey to write my first iPhone app

By , June 11, 2009 5:17 pm

Well it has been a little over 2 weeks and I am really starting to understand the code more and more. I just keep reading each chapter over and over. I think that I have read the book in total about 3 times. But I have completed my first C program! My first C program is a Lottery number generator. At first I had a couple problems where there the program would pick the same number multiple time on one ticket. But that is fixed now and the program works flawlessly. I found a good resource for learning C and C++. CProgramming.com is an awesome website with lots of tutorials for C and C++. They posted a great article “5 Ways you can learn Programming“. After reading this article I agree with it 100%. I knew a little programming so I took it way to fast and when I got to the end of the book I was really confused. So I went back and took my time, wrote a simple little program and now I understand every thing that I been reading.

Week 1 of my journey to write my first iPhone app

By , June 2, 2009 9:14 pm

I can’t believe that 1 week has gone by already. C is a little harder than I thought. I’ve read the first 8 chapters so I tried to write my first C program. It is a simple random number generator for the lottery. I am still having a couple problem generating numbers that don’t repeat in a list. Here is the code:


#include
#include //This is to bring in the declaration of clock()
#include //This is to bring in the declarations of srand() and rand()

int WPicks( void );
int DPicks( void );
void Weekly( void );
void Daily( void );
int NoSame[100];

int main (int argc, const char * argv[]) {
srand( clock() );

Weekly();
//printf("n");
//Daily();

return 0;
}

void Weekly(){
int pick, i, j;
int k;

for (k=1; k<=1; k++) {
NoSame[k] = WPicks();
}
for (j=1; j<=5; j++){
for (i = 1; i <= 6; i++) {
pick = WPicks();
if ( pick != NoSame[i] )
NoSame[i] = pick;
else
i -= 1;
}
for (i=1; i<=6; i++) {
printf( "%dt",NoSame[i]);
}

printf("n");

for (k=1; k<=6; k++) {
NoSame[k] = 0;
}

}
}

void Daily(){
int pick, i, j;

for (j=1; j<=5; j++){
for (i=1; i<=3; i++) {
pick = DPicks();
printf( "%dt",pick);
}
printf("n");

}
}

int WPicks( void ) {
return (rand() % 56) + 1;
}

int DPicks( void ) {
return (rand() % 10);
}

I am having problems with the Weekly() function. If you see the problem leave a comment and let me know.

Panorama Theme by Themocracy