Posts tagged: 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]

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.

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.

Day 3 of my journey to write my first iPhone app

By , May 27, 2009 11:07 pm

Day 3: I went back and read the previous 2 chapters, at the end if chapter 6 I was a little confused. So I am gonna take it a little slower. I thought since I’ve done some PHP programming I could breeze through the beginning of the book. I was wrong. I did write my first program and compile it on both OSX and Windows.
Another benifet of learning C is that I’m starting to under stand PHP more now.
I think I’m gonna go to doing weekly updates. The daily updates are a bit much.

Day 2 of my journey to write my first iPhone app

By , May 25, 2009 10:44 pm

Day 2: Read Chapter 6 and I was a little confused at the end of this chapter. I was having problems with the Exercise 2 and 3 of the tutorial at the end of the chapter. Exercise 2 is to write a program to compute the prime numbers from 1 to 100 and Exercise 3 is write a program to compute the first 100 prime numbers. Since I was so confused I think I’ll re-read the previous 2 chapters again. Now I can see why the said it will take you a few months to learn C.  

I am posting each days post in the Programming section of the site.

Day 1 Post

My journey to write my first iPhone app

By , May 25, 2009 12:28 pm

I am on a journey to write my first iPhone app. I have 2 apps planned that I want to write. I have programmed in the past, I’ve worked with VB 6 on Windows and I design websites using PHP every day. So I did my research to figure out where to start. If you haven’t done any programming you should learn C Programming language first. So thats where I am starting. C is a good base language to learn. Learning C will get you on your way to writing a program for the iPhone and it is the basis language for Java, C++, and Objective-C. 

Know that I have a place to start I found the book for me. I bought “Learning C on the Mac” by Dave Mark from the publisher Apress. Apress has a good series of books for learning to program on the Mac.
Here is my syllabus of books:

I will try to post a daily update.

Day 1: OK I read the first 5 chapters in “Learning C on the Mac”. I am starting to see the similarities between C, PHP and Java. If you know Java or PHP you should have no problem with this book.

Panorama Theme by Themocracy