Click here to Skip to main content
14,603,017 members
   

iOS

 
PinnedPLEASE READ: How to get an answer to your question Pin
Chris Maunder13-Jan-15 15:36
cofounderChris Maunder13-Jan-15 15:36 
Jokejoke Pin
Member 1490899620hrs 22mins ago
MemberMember 1490899620hrs 22mins ago 
QuestionIOS Pin
Member 1490899620hrs 1 min ago
MemberMember 1490899620hrs 1 min ago 
AnswerRe: IOS Pin
Richard MacCutchan17hrs 35mins ago
mveRichard MacCutchan17hrs 35mins ago 
QuestionWebview or Native App for electronic signature form Pin
jlmto15-Jan-20 20:40
Memberjlmto15-Jan-20 20:40 
QuestionWhat is free solution to intergrate Digital Signature to App Pin
Member 1471406212-Jan-20 6:29
MemberMember 1471406212-Jan-20 6:29 
QuestionRe: What is free solution to intergrate Digital Signature to App Pin
David Crow12-Jan-20 13:36
MemberDavid Crow12-Jan-20 13:36 
AnswerRe: What is free solution to intergrate Digital Signature to App Pin
Richard MacCutchan12-Jan-20 22:14
mveRichard MacCutchan12-Jan-20 22:14 
AnswerRe: What is free solution to intergrate Digital Signature to App Pin
Member 1471406212-Jan-20 23:05
MemberMember 1471406212-Jan-20 23:05 
GeneralRe: What is free solution to intergrate Digital Signature to App Pin
Richard MacCutchan13-Jan-20 0:35
mveRichard MacCutchan13-Jan-20 0:35 
GeneralRe: What is free solution to intergrate Digital Signature to App Pin
phil.o13-Jan-20 1:01
mvephil.o13-Jan-20 1:01 
GeneralRe: What is free solution to intergrate Digital Signature to App Pin
ZurdoDev13-Jan-20 1:02
mveZurdoDev13-Jan-20 1:02 
GeneralRe: What is free solution to intergrate Digital Signature to App Pin
phil.o13-Jan-20 1:19
mvephil.o13-Jan-20 1:19 
JokeMessage Closed Pin
14-Jan-20 3:29
MemberHankBaker14-Jan-20 3:29 
QuestionHow to create folder on IOS device in Cordova Pin
Aravindba23-Oct-19 0:27
professionalAravindba23-Oct-19 0:27 
QuestionHow do I unwrap an optional within a struct and use an if statement to print the optional? Pin
WilliamChen724-Jul-19 8:06
MemberWilliamChen724-Jul-19 8:06 
I am getting an error message for my use of nil and I am confused on how to properly unwrap the optional while placing it in an if statement to print out a string.



struct DatingProfile{
      var Name: String
      var Age: Int
      var City: String
      var FavoriteMovie: String? 
      var Hobbies: String?
     
    }
    
    let myDatingProfile = DatingProfile(Name: "William", Age: 30, City: "North Hollywood", FavoriteMovie: nil , Hobbies: "Basketball")
    
    if let myFavoriteMovie = FavoriteMovie = nil{
      print("\(Name) does not have a favorite movie")
       
    }else {
      
        print(myDatingProfile.FavoriteMovie)
      }
      
    }


exit status 1
main.swift:12:26: error: use of unresolved identifier 'FavoriteMovie'
if let myFavoriteMovie = FavoriteMovie = nil{
^~~~~~~~~~~~~
main.swift:13:12: error: use of unresolved identifier 'Name'
print("\(Name) does not have a favorite movie")
^~~~
main.swift:17:11: warning: expression implicitly coerced from 'String?' to 'Any'
print(myDatingProfile.FavoriteMovie)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.swift:17:27: note: provide a default value to avoid this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
?? <#default value#>
main.swift:17:27: note: force-unwrap the value to avoid this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
!
main.swift:17:27: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
as Any
main.swift:20:1: error: extraneous '}' at top level
}
^
AnswerRe: How do I unwrap an optional within a struct and use an if statement to print the optional? Pin
Richard Deeming24-Jul-19 9:32
mveRichard Deeming24-Jul-19 9:32 
QuestionHow to remove MDM profile installed on 2018 iPad Pro 256GB model? Pin
TovinoThomas11-Jun-19 20:45
MemberTovinoThomas11-Jun-19 20:45 
AnswerRe: How to remove MDM profile installed on 2018 iPad Pro 256GB model? Pin
Richard MacCutchan11-Jun-19 21:08
mveRichard MacCutchan11-Jun-19 21:08 
QuestioniOS vs Android, what made you pick iOS? Pin
TovinoThomas11-Jun-19 20:45
MemberTovinoThomas11-Jun-19 20:45 
AnswerRe: iOS vs Android, what made you pick iOS? Pin
krissnawat26-Sep-19 23:33
Memberkrissnawat26-Sep-19 23:33 
AnswerRe: iOS vs Android, what made you pick iOS? Pin
Julia2626-Jan-20 23:29
professionalJulia2626-Jan-20 23:29 
AnswerMessage Closed Pin
10-Feb-20 23:49
MemberMember 1474132610-Feb-20 23:49 
QuestionI try to create a path between two planets, I have no compilation error but I do not understand why there is nothing that appears on my simulator Pin
Member 1419771526-Mar-19 3:55
MemberMember 1419771526-Mar-19 3:55 
Questionxamarin forms cropping in ios Pin
Member 141415896-Feb-19 4:04
MemberMember 141415896-Feb-19 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.