[英]Cannot convert value of type 'String!' to expected argument type error
[英]Cannot convert to a pointer type
我正在嘗試使用ASP.net Web服務,並找到了一個名為WSDL2ObjC的實用程序。 現在,我正在嘗試使用它,並且基本的用法正在起作用(詢問簡單的數據類型,例如布爾值或字符串),但是現在,我請求的是“ EmailServiceSvc_Email”結構的數組,其中包含“主題”,“來自”和“郵件”屬性。
該應用程序將無法編譯,帶有以上消息,這是它卡住的代碼:
EmailServiceSvc_Email * eml = (EmailServiceSvc_Email *) arrEmails[[indexPath row]];
這是變量的說明:
您可能會看到,我想在iPhone的TableView中顯示“ EmailServiceSvc_Email”結構中的所有“主題”。
要從NSMutableArray中獲取元素,必須使用-objectAtIndex:
a[i]
語法不適用於NSArrays。
EmailServiceSvc_Email* eml = [arrEmails objectAtIndex:indexPath.row];
我寫了有關Wsdl2objc和復雜類型的教程:
http://brismith66.blogspot.com/2010/07/iphone-development-accessing-soap.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.