¡@

Home 

2014/10/15 ¤U¤È 10:10:07

iphone Programming Glossary: https

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to..

Detect the specific iPhone/iPod touch model [duplicate]

http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model

get the specific device model. You can find the whole category here along with other useful stuff https github.com erica uidevice extension #include sys types.h #include sys sysctl.h @implementation UIDevice..

Free Weather API [closed]

http://stackoverflow.com/questions/1305127/free-weather-api

Forecast.io has 1 000 free api calls per day and then it's 1 for every 10 000 requests after that. https developer.forecast.io Big list of free paid http blog.programmableweb.com 2012 01 11 12 json weather.. to get it to work is to add a referrer in the link but they could kill that at anytime Example https www.google.com ig api weather 23220 hl en referrer googlecalendar Weather Underground API Example http..

Does my application “contain encryption”?

http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption

severe penalties. For further information click here. Does your product contain encryption I use https but only via NSURLConnection and UIWebView . My reading of this is that my app doesn't contain encryption.. 2 you need to submit for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below..

Reachability Guide for iOS 4

http://stackoverflow.com/questions/3790957/reachability-guide-for-ios-4

reachability share improve this question I have implemented Reachability like this. Download https developer.apple.com iphone library samplecode Reachability index.html and add Reachability.h and .m..

How to link to apps on the app store

http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store

for the app store iphone objective c hyperlink app store share improve this question From https developer.apple.com news id 01062010a Drive Customers Directly to Your App on the App Store with iTunes..

How to send json data in the Http request using NSURLRequest

http://stackoverflow.com/questions/4456966/how-to-send-json-data-in-the-http-request-using-nsurlrequest

jsonDict JSONRepresentation NSLog @ jsonRequest is @ jsonRequest NSURL url NSURL URLWithString @ https xxxxxxx.com questions NSMutableURLRequest request NSMutableURLRequest requestWithURL url cachePolicy..

Lock-down iPhone/iPod/iPad so it can only run one app

http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app

returns to the specified application automatically upon wake or reboot. Read more about it here https developer.apple.com library ios featuredarticles iPhoneConfigurationProfileRef Introduction Introduction.html#..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

data events. Could someone please clarify the task with a practical example I should contact an https endpoint sending authentication data username and password and getting back a plain text response. ..

What is the best way to deal with the NSDateFormatter locale “feature”?

http://stackoverflow.com/questions/6613110/what-is-the-best-way-to-deal-with-the-nsdateformatter-locale-feature

the resulting string. See eg NSDateFormatter am I doing something wrong or is this a bug And see https developer.apple.com library ios qa qa1480 _index.html Apparently Apple has declared this to be BAD Broken..

How can we programmatically detect which iOS version is device running on? [duplicate]

http://stackoverflow.com/questions/7848766/how-can-we-programmatically-detect-which-ios-version-is-device-running-on

to define macros See original answer Check iPhone iOS Version Those macros do exist in github see https github.com carlj CJAMacros blob master CJAMacros CJAMacros.h Like this #define SYSTEM_VERSION_EQUAL_TO..

Google plus api for posting on wall like facebook

http://stackoverflow.com/questions/7857812/google-plus-api-for-posting-on-wall-like-facebook

as google is in the process of creating new api's for accessing user information on google plus. https developers.google.com api Also you can use the google client sdk provided by google but it is much easier.. token as in foursquare. Just with some small changes. in viewdidload method. NSString authStr @ https accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https.. accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https www.googleapis.com auth plus.me response_type token as a url for loading request in webview. People..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

a string Objective C url encoding http cybersam.com programming proper url percent encoding in ios https devforums.apple.com message 15674#15674 http simonwoodside.com weblog 2009 4 22 how_to_really_url_encode..

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

. I've implemented a simple container class I called TransitionController . You can find it at https gist.github.com 1394947 . As an aside I prefer the implementation in a separate class b c it's easier..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

connections anyway just like in a browser you can press accept or a way to bypass it iphone ssl https share improve this question There is a supported API for accomplishing this Add something like this..

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

to the project but don't worry about including it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface..

Detect the specific iPhone/iPod touch model [duplicate]

http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model

I don't take credit for it that uses the following code to get the specific device model. You can find the whole category here along with other useful stuff https github.com erica uidevice extension #include sys types.h #include sys sysctl.h @implementation UIDevice Hardware Platforms iPhone1 1 iPhone 1G iPhone1 2 iPhone..

Free Weather API [closed]

http://stackoverflow.com/questions/1305127/free-weather-api

These are not iPhone specific but free weather APIs. Forecast.io has 1 000 free api calls per day and then it's 1 for every 10 000 requests after that. https developer.forecast.io Big list of free paid http blog.programmableweb.com 2012 01 11 12 json weather apis World Weather Online API example http free.worldweatheronline.com.. Google Weather API Currently deactivated and the only hack to get it to work is to add a referrer in the link but they could kill that at anytime Example https www.google.com ig api weather 23220 hl en referrer googlecalendar Weather Underground API Example http api.wunderground.com auto wui geo GeoLookupXML index.xml..

Does my application “contain encryption”?

http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption

authorized for export. Failure to comply could result in severe penalties. For further information click here. Does your product contain encryption I use https but only via NSURLConnection and UIWebView . My reading of this is that my app doesn't contain encryption but I'm wondering if this is spelled out anywhere. Severe.. for purposes other than those listed as exemptions under question 2 you need to submit for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with information about your app every January. 2nd Question Does..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

part isn't the same as the arm6 arm7 difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below Karl's library http stackoverflow.com a 5721978 153422 takes..

Reachability Guide for iOS 4

http://stackoverflow.com/questions/3790957/reachability-guide-for-ios-4

on iOS4 I have yet to find one. Thanks in advance iphone reachability share improve this question I have implemented Reachability like this. Download https developer.apple.com iphone library samplecode Reachability index.html and add Reachability.h and .m to your project. Add the SystemConfiguration framework to your..

How to link to apps on the app store

http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store

so I know it is possible. Any ideas What is the URL Scheme for the app store iphone objective c hyperlink app store share improve this question From https developer.apple.com news id 01062010a Drive Customers Directly to Your App on the App Store with iTunes Links With iTunes links you can provide your customers with..

How to send json data in the Http request using NSURLRequest

http://stackoverflow.com/questions/4456966/how-to-send-json-data-in-the-http-request-using-nsurlrequest

questionDict forKey @ question NSString jsonRequest jsonDict JSONRepresentation NSLog @ jsonRequest is @ jsonRequest NSURL url NSURL URLWithString @ https xxxxxxx.com questions NSMutableURLRequest request NSMutableURLRequest requestWithURL url cachePolicy NSURLRequestUseProtocolCachePolicy timeoutInterval 60.0 NSData..

Lock-down iPhone/iPod/iPad so it can only run one app

http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app

payload is removed. The home button is disabled and the device returns to the specified application automatically upon wake or reboot. Read more about it here https developer.apple.com library ios featuredarticles iPhoneConfigurationProfileRef Introduction Introduction.html# apple_ref doc uid TP40010206 CH1 SW4 iphone security..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

forces me to have a delegate object which in turn will handle data events. Could someone please clarify the task with a practical example I should contact an https endpoint sending authentication data username and password and getting back a plain text response. iphone objective c ios share improve this question You can..

What is the best way to deal with the NSDateFormatter locale “feature”?

http://stackoverflow.com/questions/6613110/what-is-the-best-way-to-deal-with-the-nsdateformatter-locale-feature

to 12. Then the above starts tacking AM or PM onto the end of the resulting string. See eg NSDateFormatter am I doing something wrong or is this a bug And see https developer.apple.com library ios qa qa1480 _index.html Apparently Apple has declared this to be BAD Broken As Designed and they aren't going to fix it. The circumvention..

How can we programmatically detect which iOS version is device running on? [duplicate]

http://stackoverflow.com/questions/7848766/how-can-we-programmatically-detect-which-ios-version-is-device-running-on

without need to deal with numeric search within NSString is to define macros See original answer Check iPhone iOS Version Those macros do exist in github see https github.com carlj CJAMacros blob master CJAMacros CJAMacros.h Like this #define SYSTEM_VERSION_EQUAL_TO v UIDevice currentDevice systemVersion compare v options..

Google plus api for posting on wall like facebook

http://stackoverflow.com/questions/7857812/google-plus-api-for-posting-on-wall-like-facebook

of google page my question will not get any definite answers as google is in the process of creating new api's for accessing user information on google plus. https developers.google.com api Also you can use the google client sdk provided by google but it is much easier to show a webview for user login. I managed to get the.. from google plus. The steps are same as for getting the access token as in foursquare. Just with some small changes. in viewdidload method. NSString authStr @ https accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https www.googleapis.com auth plus.me response_type token as a url.. small changes. in viewdidload method. NSString authStr @ https accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https www.googleapis.com auth plus.me response_type token as a url for loading request in webview. People should note one thing here that you need to create a client..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

to the window e.g. window.rootViewController.view.anotherView . I've implemented a simple container class I called TransitionController . You can find it at https gist.github.com 1394947 . As an aside I prefer the implementation in a separate class b c it's easier to reuse. If you don't want that you could simply implement..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

server certificate . Is there a way to set it to accept connections anyway just like in a browser you can press accept or a way to bypass it iphone ssl https share improve this question There is a supported API for accomplishing this Add something like this to your NSURLConnection delegate BOOL connection NSURLConnection..

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

including it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the..

Detect the specific iPhone/iPod touch model [duplicate]

http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model

following code to get the specific device model. You can find the whole category here along with other useful stuff https github.com erica uidevice extension #include sys types.h #include sys sysctl.h @implementation UIDevice Hardware Platforms..

Free Weather API [closed]

http://stackoverflow.com/questions/1305127/free-weather-api

free weather APIs. Forecast.io has 1 000 free api calls per day and then it's 1 for every 10 000 requests after that. https developer.forecast.io Big list of free paid http blog.programmableweb.com 2012 01 11 12 json weather apis World Weather.. and the only hack to get it to work is to add a referrer in the link but they could kill that at anytime Example https www.google.com ig api weather 23220 hl en referrer googlecalendar Weather Underground API Example http api.wunderground.com..

Does my application “contain encryption”?

http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption

could result in severe penalties. For further information click here. Does your product contain encryption I use https but only via NSURLConnection and UIWebView . My reading of this is that my app doesn't contain encryption but I'm wondering.. exemptions under question 2 you need to submit for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with information about your..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below Karl's library http..

Reachability Guide for iOS 4

http://stackoverflow.com/questions/3790957/reachability-guide-for-ios-4

in advance iphone reachability share improve this question I have implemented Reachability like this. Download https developer.apple.com iphone library samplecode Reachability index.html and add Reachability.h and .m to your project. Add..

How to link to apps on the app store

http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store

What is the URL Scheme for the app store iphone objective c hyperlink app store share improve this question From https developer.apple.com news id 01062010a Drive Customers Directly to Your App on the App Store with iTunes Links With iTunes..

How to send json data in the Http request using NSURLRequest

http://stackoverflow.com/questions/4456966/how-to-send-json-data-in-the-http-request-using-nsurlrequest

NSString jsonRequest jsonDict JSONRepresentation NSLog @ jsonRequest is @ jsonRequest NSURL url NSURL URLWithString @ https xxxxxxx.com questions NSMutableURLRequest request NSMutableURLRequest requestWithURL url cachePolicy NSURLRequestUseProtocolCachePolicy..

Lock-down iPhone/iPod/iPad so it can only run one app

http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app

and the device returns to the specified application automatically upon wake or reboot. Read more about it here https developer.apple.com library ios featuredarticles iPhoneConfigurationProfileRef Introduction Introduction.html# apple_ref..

iOS: how to perform an HTTP POST request?

http://stackoverflow.com/questions/5537297/ios-how-to-perform-an-http-post-request

in turn will handle data events. Could someone please clarify the task with a practical example I should contact an https endpoint sending authentication data username and password and getting back a plain text response. iphone objective c ios..

What is the best way to deal with the NSDateFormatter locale “feature”?

http://stackoverflow.com/questions/6613110/what-is-the-best-way-to-deal-with-the-nsdateformatter-locale-feature

or PM onto the end of the resulting string. See eg NSDateFormatter am I doing something wrong or is this a bug And see https developer.apple.com library ios qa qa1480 _index.html Apparently Apple has declared this to be BAD Broken As Designed and..

How can we programmatically detect which iOS version is device running on? [duplicate]

http://stackoverflow.com/questions/7848766/how-can-we-programmatically-detect-which-ios-version-is-device-running-on

within NSString is to define macros See original answer Check iPhone iOS Version Those macros do exist in github see https github.com carlj CJAMacros blob master CJAMacros CJAMacros.h Like this #define SYSTEM_VERSION_EQUAL_TO v UIDevice currentDevice..

Google plus api for posting on wall like facebook

http://stackoverflow.com/questions/7857812/google-plus-api-for-posting-on-wall-like-facebook

any definite answers as google is in the process of creating new api's for accessing user information on google plus. https developers.google.com api Also you can use the google client sdk provided by google but it is much easier to show a webview.. for getting the access token as in foursquare. Just with some small changes. in viewdidload method. NSString authStr @ https accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https www.googleapis.com.. authStr @ https accounts.google.com o oauth2 auth client_id client_id redirect_uri http somevalidurl.com scope https www.googleapis.com auth plus.me response_type token as a url for loading request in webview. People should note one thing..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

percent encode a string Objective C url encoding http cybersam.com programming proper url percent encoding in ios https devforums.apple.com message 15674#15674 http simonwoodside.com weblog 2009 4 22 how_to_really_url_encode share improve..

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

. I've implemented a simple container class I called TransitionController . You can find it at https gist.github.com 1394947 . As an aside I prefer the implementation in a separate class b c it's easier to reuse. If you don't..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

to set it to accept connections anyway just like in a browser you can press accept or a way to bypass it iphone ssl https share improve this question There is a supported API for accomplishing this Add something like this to your NSURLConnection..

Accessing Web Service from iPhone

http://stackoverflow.com/questions/1018369/accessing-web-service-from-iphone

to reduce the complexities of threading with web calls and take everything off the main thread. For security make HTTPS calls. You might want to consider using JSON for the call then this library is useful https github.com stig json framework..

UIWebView to view self signed websites (No private api, not NSURLConnection) - is it possible?

http://stackoverflow.com/questions/11573164/uiwebview-to-view-self-signed-websites-no-private-api-not-nsurlconnection-i

NSURLConnection is it possible There's a load of questions which ask this Can I get UIWebView to view a self signed HTTPS website And the answers always involve either Use the private api call for NSURLRequest allowsAnyHTTPSCertificateForHost.. a self signed HTTPS website And the answers always involve either Use the private api call for NSURLRequest allowsAnyHTTPSCertificateForHost Use NSURLConnection instead and the delegate canAuthenticateAgainstProtectionSpace etc For me these won't..

Sending POST data from iphone over SSL HTTPS

http://stackoverflow.com/questions/1571336/sending-post-data-from-iphone-over-ssl-https

POST data from iphone over SSL HTTPS In my iphone project i need to pass the user name and password to a web server previously i pass data using GET method..

HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted

http://stackoverflow.com/questions/1578121/https-with-nsurlconnection-nsurlerrorservercertificateuntrusted

with NSURLConnection NSURLErrorServerCertificateUntrusted I have an application that connects fine over http. When trying..

How can my server securely authenticate iPhone in-app purchase?

http://stackoverflow.com/questions/1581246/how-can-my-server-securely-authenticate-iphone-in-app-purchase

in the application immediately send it to your server along with the device's UUID over a secure channel such as HTTPS or an SSL socket. Do not store it anywhere leave it in memory. On your server store the UUID and receipt pair in a database...

Does my application “contain encryption”?

http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption

this question Unfortunately I believe that your app contains encryption in terms of US BIS even if you just use HTTPS if your app is not an exception included in question 2 . Quote from FAQ on iTunes Connect How do I know if I can follow..

iPhone web service calls to WCF Service with Certificate Authentication

http://stackoverflow.com/questions/2244764/iphone-web-service-calls-to-wcf-service-with-certificate-authentication

that all parties involved were .NET WCF capable. I believe it would be easier to consume on the device if it were an HTTPS transport level security with clear XML or JSON message bodies. That way you can take advantage of all the stuff baked into..

ASIHTTPRequest - HTTPS

http://stackoverflow.com/questions/2730539/asihttprequest-https

HTTPS Does ASIHTTPRequest support HTTPS connections My connection right now works for a HTTP connection and errors if I try a.. HTTPS Does ASIHTTPRequest support HTTPS connections My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. Goes into requestFailed.. ASIHTTPRequest support HTTPS connections My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain void getData av.hidden NO av startAnimating..

RESTful frameworks for Android, iOS…?

http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios

included. We use OAuth and need to deliver the Access Token on any request. Maybe as parameter or in the HTTP Header HTTPS SSL support Pagination and Relationships with lazy loading support would be great Otherwize the framework must be able to..

Cannot view Quicktime movies over HTTPS in Safari or UIWebView

http://stackoverflow.com/questions/4660189/cannot-view-quicktime-movies-over-https-in-safari-or-uiwebview

view Quicktime movies over HTTPS in Safari or UIWebView I am trying to get my iPhone application to work with HTTPS in addition to HTTP but using UIWebView.. view Quicktime movies over HTTPS in Safari or UIWebView I am trying to get my iPhone application to work with HTTPS in addition to HTTP but using UIWebView or MPMoviePlayerController to view a Quicktime MOV file doesn't seem to work over.. addition to HTTP but using UIWebView or MPMoviePlayerController to view a Quicktime MOV file doesn't seem to work over HTTPS. I get This movie could not be played . I tried in Safari to eliminate my app as being the problem and the same thing happened...

iOS 5 NSURLConnection to HTTPS Servers

http://stackoverflow.com/questions/9122761/ios-5-nsurlconnection-to-https-servers

5 NSURLConnection to HTTPS Servers I have searched for hours regarding the NSURLConnection delegates methods that allows me to use to connect to any.. I have searched for hours regarding the NSURLConnection delegates methods that allows me to use to connect to any HTTPS servers. Even I searched on this site and I found answers answers which didn't work for me. I will upload the code link.. any of you want me to. But I would prefer a tutorial sample codes source code of a simple UIWebView connecting to any HTTPS Servers . And I will take it from there. Thanks in advance. iphone ios5 https nsurlconnection share improve this question..

Best practices for iOS applications security

http://stackoverflow.com/questions/9448632/best-practices-for-ios-applications-security

actually need or for longer than you need. Store application specific authentication tokens rather than passwords. Use HTTPS to verify the server you are contacting. Never accept an invalid or untrusted certificate. When connecting to your own server..