Category: Programming

iPhone App Setting location

comments Comments Off
By syclonefx, 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.

comments Comments Off
By syclonefx, 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

comments Comments Off
By syclonefx, 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

comments Comments Off
By syclonefx, 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( "%d\t",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( "%d\t",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 syclonefx, 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.


Apple iTunes - Smallville

Panorama Theme by Themocracy