Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 15, 2010, 09:38 PM   #1
newtoiphonesdk
macrumors 6502a
 
Join Date: Jul 2010
Different View based on date?

Sorry, I couldn't think of a better Title for this. I am making an app to display a different proverb every day. What would be the best way to go about doing this?
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 15, 2010, 11:03 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
Same view, change its text property.
chown33 is online now   0 Reply With Quote
Old Aug 15, 2010, 11:29 PM   #3
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
What do you mean? I've never heard of this before
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 12:34 AM   #4
chown33
macrumors 603
 
Join Date: Aug 2009
What have you never heard of before? Text properties? Views that have text properties? Views that can have their text property changed by code?

Examples of views that have text properties:
http://developer.apple.com/iphone/li...ITextView.html
http://developer.apple.com/iphone/li...TextField.html
http://developer.apple.com/iphone/li...e/UILabel.html

Last edited by chown33; Aug 16, 2010 at 12:53 AM.
chown33 is online now   0 Reply With Quote
Old Aug 16, 2010, 02:30 AM   #5
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
Text properties and how they can be changed for this purpose
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 09:52 AM   #6
chown33
macrumors 603
 
Join Date: Aug 2009
What book are you learning from? Be specific.

How far through the book are you? Which view classes are you familiar with?
chown33 is online now   0 Reply With Quote
Old Aug 16, 2010, 05:44 PM   #7
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
I don't have a book. I've been learning as I go and reading tutorials and other posts
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 05:47 PM   #8
Luke Redpath
macrumors 6502a
 
Join Date: Nov 2007
Quote:
Originally Posted by newtoiphonesdk View Post
Text properties and how they can be changed for this purpose
Have you done any programming before? If so, the solution is fairly obvious; if not, it might be worth going back and learning some programming basics before venturing further.
Luke Redpath is offline   0 Reply With Quote
Old Aug 16, 2010, 06:17 PM   #9
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
No real experience before
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 06:52 PM   #10
chown33
macrumors 603
 
Join Date: Aug 2009
What tutorials? Be specific: give URLs.
How far did you get through them? Again, be specific.

Did you intentionally choose this haphazard approach to learning, or is there some other constraint you haven't stated yet, like you can't afford a book?
chown33 is online now   0 Reply With Quote
Old Aug 16, 2010, 06:58 PM   #11
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
How I choose to learn is not your concern. I have no urls for tutorials. Just learned what I needed as I went along.
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 07:11 PM   #12
chown33
macrumors 603
 
Join Date: Aug 2009
Quote:
Originally Posted by newtoiphonesdk View Post
How I choose to learn is not your concern. I have no urls for tutorials. Just learned what I needed as I went along.
Since you're obviously the expert, I'll leave it to you to assess your knowledge shortcomings, and then teach yourself the fundamentals needed in order to make sense of the links I posted earlier.
chown33 is online now   0 Reply With Quote
Old Aug 16, 2010, 07:31 PM   #13
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
Thanks for proving my point <snip>

Last edited by kainjow; Aug 16, 2010 at 09:50 PM. Reason: name calling
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 07:34 PM   #14
Luke Redpath
macrumors 6502a
 
Join Date: Nov 2007
Quote:
Originally Posted by newtoiphonesdk View Post
Thanks for proving my point
Helping you to help yourself is far more productive in the long run than spoon feeding you information. Throwing your toys out of the pram just because people aren't here to hold your hands isn't going to exactly make people want to help is it? There is only one person in this thread acting like a douche.

Last edited by kainjow; Aug 16, 2010 at 09:50 PM. Reason: cleanup
Luke Redpath is offline   0 Reply With Quote
Old Aug 16, 2010, 07:38 PM   #15
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
Sending me links to an info page about textview textfield and labels helps 0%
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 07:45 PM   #16
Luke Redpath
macrumors 6502a
 
Join Date: Nov 2007
Quote:
Originally Posted by newtoiphonesdk View Post
Sending me links to an info page about textview textfield and labels helps 0%
I find that the quality/usefulness of answers is generally directly proportional to the quality of the original question. Garbage in, garbage out as it were.

I have already suggested you step back and learn programming basics before delving deeper. I highly recommend Learn Programming by The Pragmatic Programmers. It uses the Ruby programng language and is a great intro to progamming for beginners.

http://pragprog.com/titles/ltp2/lear...am-2nd-edition

I also suggest that if you want people to help you in the future, you learn how to ask better, more detailed and focussed questions, not to dismiss advice when its given (who is the beginner here?) and drop the attitude.
Luke Redpath is offline   0 Reply With Quote
Old Aug 16, 2010, 07:48 PM   #17
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
I suggest y'all drop the uppity attitude. My attitude started after the method in which I am learning was ridiculed and was accused of being either too poor or stupid to get a book
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 07:50 PM   #18
Luke Redpath
macrumors 6502a
 
Join Date: Nov 2007
Quote:
Originally Posted by newtoiphonesdk View Post
I suggest y'all drop the uppity attitude. My attitude started after the method in which I am learning was ridiculed and was accused of being either too poor or stupid to get a book
Give me a break.

I've tried to point you in the right direction. I suggest you go and find some other mugs to spoon feed you information, if you think that will help you learn.
Luke Redpath is offline   0 Reply With Quote
Old Aug 16, 2010, 07:54 PM   #19
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
What I have been "spoon fed" has greatly helped me I have learned from it and have not hesitated to pass that on to others that have asked. I feel when someone asks what 2+2 is it is better to say 4 than to ridicule them for their stupid question or tell them where they can google the question or where they can buy a calculator
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 08:13 PM   #20
chown33
macrumors 603
 
Join Date: Aug 2009
Quote:
Originally Posted by newtoiphonesdk View Post
I suggest y'all drop the uppity attitude. My attitude started after the method in which I am learning was ridiculed and was accused of being either too poor or stupid to get a book
I made no such accusation or ridicule. I was simply trying to assess what your understanding of the fundamentals was by asking for a reference.

The reason the links I gave were 0% help is because you don't have a sufficient grasp on the fundamentals. But that's just my opinion, and I obviously don't know nearly enough about programming to help you.

Since you seem so determined to do this your own way, I won't stand in your way.
chown33 is online now   0 Reply With Quote
Old Aug 16, 2010, 08:16 PM   #21
newtoiphonesdk
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
Quote:
Originally Posted by chown33 View Post
What tutorials? Be specific: give URLs.
How far did you get through them? Again, be specific.

Did you intentionally choose this haphazard approach to learning, or is there some other constraint you haven't stated yet, like you can't afford a book?
That last part seems pretty ridiculing to me
newtoiphonesdk is offline   0 Reply With Quote
Old Aug 16, 2010, 08:28 PM   #22
chown33
macrumors 603
 
Join Date: Aug 2009
Quote:
Originally Posted by newtoiphonesdk View Post
That last part seems pretty ridiculing to me
Which part, specifically?

The word "haphazard" means "lacking any obvious principle of organization", which seems accurate to me, because I was unable to discern any principle that organized your approach, and you didn't provide one.

The word "intentional" is apt. It's the opposite of "accidental". Some people do intentionally work in a haphazard way. Others end up there by accident, sometimes despite their opposite intent.

The phrase "or is there some other constraint you haven't stated yet, like you can't afford a book?" is simply asking whether there is an unstated constraint. The word "like" is used to introduce a hypothetical that is not uncommon among students: insufficient free cash to buy books.


EDITED TO ADD:
Quote:
Originally Posted by newtoiphonesdk View Post
I feel when someone asks what 2+2 is it is better to say 4 than to ridicule them for their stupid question or tell them where they can google the question or where they can buy a calculator
What makes you think your question can be answered as simply as 2+2=4? If you don't understand the fundamentals of arithmetic, then the answer "4" won't help you learn how to perform arithmetic by yourself.

Also notice that no one in this thread has ever told you to google anything. I gave specific links to specific classes.

Every one of the classes I linked to is used for displaying text. Every one of them has a readwrite text property. If you can't put those things together to come up with a way to change a view to show different texts, then that seems to be evidence you don't have an adequate grasp of the fundamentals. And since you haven't listed any of the tutorials or references you used to learn the fundamentals, there's no way to offer specific advice on what you should study.

Last edited by chown33; Aug 16, 2010 at 09:18 PM.
chown33 is online now   0 Reply With Quote
Old Aug 17, 2010, 12:44 AM   #23
Anne R. Kist
macrumors newbie
 
Join Date: Aug 2010
Location: ...in the UK
Quote:
Originally Posted by newtoiphonesdk View Post
I feel when someone asks what 2+2 is it is better to say 4 than to ridicule them for their stupid question or tell them where they can google the question or where they can buy a calculator
Perhaps. But if you get a calculator and learn how to use it, you might not need to come back and ask "Okay, next question: what is 2+3?" You now have the tools and know-how to figure out the answer yourself.

Don't be a Help Vampire.
Anne R. Kist is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
View-based table view losing selection highlight Starfox Mac Programming 1 Nov 28, 2012 01:02 AM
View based table view layout woes Starfox Mac Programming 0 Nov 8, 2012 10:50 PM
View based vs Window based application Vishwas Gagrani iPhone/iPad Programming 1 Oct 14, 2012 05:25 PM
Idea: View-Based Notifications (Instead of Focus-Based) faroZ06 OS X 10.8 Mountain Lion 0 Jul 28, 2012 12:32 PM
Reordering rows in a view-based NSTableVIew monsieurpaul Mac Programming 2 Jul 19, 2012 08:21 AM

Forum Jump

All times are GMT -5. The time now is 01:29 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC