Can you explain What is enumeration and how it is used in iPhone.
What is Enum?
hello,
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Nov 9, 2012, 4:51 AM EST
http://cupsofcocoa.com/2011/03/20/objective-c-lesson-7-enumerated-types-and-typedefs/
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 9, 2012, 5:58 AM EST
http://www.c-sharpcorner.com/uploadfile/gowth/enumeration-in-C-Sharp/
Gurunatha Dogi44 reputationPosted Jul 15, 2014, 2:48 AM EDT
Check this article to understand enum with an example
http://www.onlinebuff.com/article_understand-enums-in-c-with-an-example_50.html
Surya Narayan BarikRank #1,086 · 1.7K reputationPosted Apr 13, 2017, 10:15 PM EDT
Enumeration in swift also resembles the structure of C and Objective C. Let me add a use case .
case Hot
case Cold
case Moderate
case Rainy
}
var season = ClimateinState.Hot
switch season {
case .Hot:
print("You are in Rajasthan")
case .Cold:
print("You are in Kashmir")
case .Moderate:
print("Climate is Odisha")
case .Rainy:
print("Climate is Mumbai")
}
Output :-
Climate is Cold
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 5, 2017, 8:49 AM EDT