iphone Programming Glossary: us
How can I upload a photo to a server with the iPhone? http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone then uploads it to a server. How do I upload a photo to a server with Cocoa in Xcode I suppose I use NSUrl somewhere. Thanks iphone cocoa touch cocoa networking share improve this question Header.. upload Uploads the given file. The file is compressed before beign uploaded. The data is uploaded using an HTTP POST command. Results None Side effects None void upload NSData data NSData dataWithContentsOfFile.. delegate self if connection self uploadSucceeded NO Now wait for the URL connection to call us back. Uploader Private postRequestWithURL boundry data Creates a HTML POST request. Results The..
OpenGL ES iPhone - drawing anti aliased lines http://stackoverflow.com/questions/1813035/opengl-es-iphone-drawing-anti-aliased-lines ES iPhone drawing anti aliased lines Normally you'd use something like glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND glEnable GL_LINE_SMOOTH.. share improve this question One can achieve the effect of anti aliasing very cheaply using vertices with opacity 0. Here's an image example to explain Comparison with AA You can read a paper.. to explain Comparison with AA You can read a paper about this here http research.microsoft.com en us um people hoppe overdraw.pdf You could do something along this way Colors is a pointer to unsigned bytes..
Send and receive messages through NSNotificationCenter in Objective-C? [closed] http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c of TestClass as an observer of the TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil.. TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil we tell the notification center that.. NSNotification notification notification name should always be @ TestNotification unless you use this method for observation of other notifications as well. if notification name isEqualToString @..
Horizontal UITableView http://stackoverflow.com/questions/2870680/horizontal-uitableview I basically want to do somthing similar to what the BBC News reader app http itunes.apple.com us app bbc news id364147881 mt 8 on the Ipad does with the list of stories to select from. Thanks iphone.. sample code that demonstrates one approach for implementing horizontally scrolling table views using transforms. It's called EasyTableView and provides the same interface for both vertically and horizontally..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework the apple FFT and accelerate Framework Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use.. the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it I know that apple has some sample code posted but I'm not really sure how to implement it into an.. how to implement it into an actual project. iphone audio fft share improve this question I just got the FFT code working for an iPhone project create a new project delete all the files except for..
iPhone - Backgrounding to poll for events http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events Background Execution documentation and a few trial apps I'd dismissed this as impossible without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com.. background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count.. this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count of Cellular WiFi data you've..
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 iPod iPad so it can only run one app We'd like to 'lock down' an iPhone iPod iPad so that the user can only run one app we've developed this app internally . I'm guessing we'd be looking at jailbreaking.. a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS 7 now includes an 'App Lock' payload as part of the device configuration.. your config from the web all you have to do is direct the iPhone to a url containing the profile. Just open the link to your .mobileconfig file in safari. If you don't have web space you can just use dropbox..
Problem setting exif data for an image http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image setting exif data for an image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following.. image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict CMGetAttachment sampleBuffer kCGImagePropertyExifDictionary.. CFURLRef docurl kUTTypeJPEG 1 NULL Add the image to the destination using previously saved options. CGImageDestinationAddImage myImageDest iref NULL add back exif NSDictionary..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil wirelessly without managing UDIDs and recompilation I need to know what methods people are using to distribute internally demo of iPad application wirelessly without having to manage UDID I do not.. requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing another studio doing a much smarter way right now and I wish to know how they did it With.. doing a much smarter way right now and I wish to know how they did it With a link they gave to us we can install their demo application from a simple HTML over the air and a provisioning profile magically..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers a strong desire to get the most out of the language and the frameworks. One of the resources I'm using is Stanford's CS193P class notes that they have left on the web. It includes lecture notes assignments.. to an assignment to build a UINavigationController based app that has multiple UIViewControllers pushed onto the UINavigationController stack. That's how the UINavigationController works. That's logical... in the slide about communicating between your UIViewControllers. I'm going to quote from this serious of slides http cs193p.stanford.edu downloads 08 NavigationTabBarControllers.pdf Page 16 51 How Not To..
How to Mask an UIImageView http://stackoverflow.com/questions/5757386/how-to-mask-an-uiimageview maskedImage iphone objective c ios uiimage mask share improve this question The tutorial uses this method with two parameters image and maskImage these you have to set when you call the method... which you are calling somewhere. You don't need to create the images inside it this reduces the reusability of the method to zero. To get your code working. Change the methods head 1. to UIImage maskImageMyImages..
How to programmatically determine iPhone interface orientation? http://stackoverflow.com/questions/634745/how-to-programmatically-determine-iphone-interface-orientation include UIDeviceOrientationFaceUp and UIDeviceOrientationFaceDown . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented.. . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented in portrait or landscape mode. Is there a way to.. a way to find the current orientation of the GUI in cases where the device is returning ambiguous information I suppose I could track orientation change events to remember the last portrait landscape..
Understanding reference counting with Cocoa and Objective-C http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c reference counting with Cocoa and Objective C I'm just beginning to have a look at Objective C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably.. with C's malloc and free concept but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release.. counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release retain and autorelease work and what are the conventions about..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key to dismiss keyboard for UITextView with return key In IB's library the introduction tells us that when the return key is pressed the keyboard for UITextView will disappear. But actually the return.. will disappear. But actually the return key can only act as ' n'. I can add a button and use txtView resignFirstResponder to hide the keyboard. But is there a way to add the action for the return.. share improve this question UITextView does not have any methods which will be called when the user hits the return key. If you want the user to be able to add only one line of text use a UITextField..
Open Source Cocoa/Cocoa-Touch POP3/SMTP library? http://stackoverflow.com/questions/740939/open-source-cocoa-cocoa-touch-pop3-smtp-library SMTP server. Instead of re inventing the wheel with BSD sockets and CFNetwork type calls I'm curious if there is currently any open source libraries that already take care of alot of the dirty work I've.. c cocoa cocoa touch pop3 share improve this question MessageFramework on CocoaDev lists various possibilities Sending emails from Cocoa also lists several frameworks including Pantomime MailCore and.. also been modified to compile for 10.4 as well as 10.5 so should work on the iPhone Example code using Pantomime from the above blog post CWMessage message CWMessage alloc init CWInternetAddress address..
iPhone App ??#160;Add voice recognition? [closed] http://stackoverflow.com/questions/942312/iphone-app-add-voice-recognition App #160 Add voice recognition closed I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature but I'm curious.. voice recognition. I've seen big companies like Google etc implement this feature but I'm curious about doing it on a start up level. Anyone looked into this Are there any tools out there for us to.. about doing it on a start up level. Anyone looked into this Are there any tools out there for us to do this iphone speech recognition voice recording speech to text share improve this question ..
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted.. and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so.. up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you need to do..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption improve 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.. for any exemptions provided under category 5 part 2 There are several exemptions available in US export regulations under Category 5 Part 2 Information Security Encryption regulations for applications..
How can I deploy an iPhone application from Xcode to a real iPhone device? http://stackoverflow.com/questions/246422/how-can-i-deploy-an-iphone-application-from-xcode-to-a-real-iphone-device device How can I deploy an iPhone application from Xcode to real iPhone device without having a US 99 Apple certificate iphone xcode deployment certificate share improve this question It sounds..
What is the best way to enter numeric values with decimal points? http://stackoverflow.com/questions/276382/what-is-the-best-way-to-enter-numeric-values-with-decimal-points separator key Why Because you can simply infer it from the user's input. For instance in the US locale when you what to enter in 1.23 you start by entering the numbers 1 2 3 in that order . In the..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store improve this question Official Developer Program For a standard iPhone you'll need to pay the US 99 yr to be a member of the developer program. You can then use the adhoc system to install your application..
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 yyyyMMddHHmmss NSString dateStr fmt stringFromDate someDate fmt release Then it works fine in the US and most locales UNTIL ... someone with their phone set to a 24 hour region sets the 12 24 hour switch.. is apparently to set the locale of the date formatter for a specific region generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc.. generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc loc release Not too bad in onsies twosies but I'm dealing with about ten different..
How can I upload a photo to a server with the iPhone? http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone the iPhone I'm writing an iPhone app that takes a photo and then uploads it to a server. How do I upload a photo to a server with Cocoa in Xcode I suppose I use NSUrl somewhere. Thanks iphone cocoa touch cocoa networking share improve this question Header @interface EPUploader NSObject NSURL serverURL NSString filePath.. @implementation EPUploader Private Uploader Private upload Uploads the given file. The file is compressed before beign uploaded. The data is uploaded using an HTTP POST command. Results None Side effects None void upload NSData data NSData dataWithContentsOfFile filePath ASSERT data if data self uploadSucceeded.. connection NSURLConnection alloc initWithRequest urlRequest delegate self if connection self uploadSucceeded NO Now wait for the URL connection to call us back. Uploader Private postRequestWithURL boundry data Creates a HTML POST request. Results The HTML POST request. Side effects None NSURLRequest postRequestWithURL..
OpenGL ES iPhone - drawing anti aliased lines http://stackoverflow.com/questions/1813035/opengl-es-iphone-drawing-anti-aliased-lines ES iPhone drawing anti aliased lines Normally you'd use something like glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND glEnable GL_LINE_SMOOTH glLineWidth 2.0f glVertexPointer 2 GL_FLOAT 0 points glEnableClientState.. How do you get AA on iPhone iphone opengl es line antialiasing share improve this question One can achieve the effect of anti aliasing very cheaply using vertices with opacity 0. Here's an image example to explain Comparison with AA You can read a paper about this here http research.microsoft.com en us um people.. using vertices with opacity 0. Here's an image example to explain Comparison with AA You can read a paper about this here http research.microsoft.com en us um people hoppe overdraw.pdf You could do something along this way Colors is a pointer to unsigned bytes 4 per color . Should alternate in opacity. glColorPointer..
Send and receive messages through NSNotificationCenter in Objective-C? [closed] http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c id init self super init if self return nil Add this instance of TestClass as an observer of the TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil we tell the notification center that we are not interested.. nil Add this instance of TestClass as an observer of the TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil we tell the notification center that we are not interested in who posted the notification. If.. object nil return self void receiveTestNotification NSNotification notification notification name should always be @ TestNotification unless you use this method for observation of other notifications as well. if notification name isEqualToString @ TestNotification NSLog @ Successfully received the test notification..
Horizontal UITableView http://stackoverflow.com/questions/2870680/horizontal-uitableview advantage of a datasource provider like uitableview provides I basically want to do somthing similar to what the BBC News reader app http itunes.apple.com us app bbc news id364147881 mt 8 on the Ipad does with the list of stories to select from. Thanks iphone orientation ipad share improve this question I have published.. ipad share improve this question I have published sample code that demonstrates one approach for implementing horizontally scrolling table views using transforms. It's called EasyTableView and provides the same interface for both vertically and horizontally scrolling table views. share improve this answer..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework the apple FFT and accelerate Framework Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it I know that apple has some sample code posted but I'm.. the apple FFT and accelerate Framework Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it I know that apple has some sample code posted but I'm not really sure how to implement it into an actual project. iphone audio fft share improve this question.. apple has some sample code posted but I'm not really sure how to implement it into an actual project. iphone audio fft share improve this question I just got the FFT code working for an iPhone project create a new project delete all the files except for main.m and xxx_info.plist going to project settings and search..
iPhone - Backgrounding to poll for events http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events to check the data counters. After much reading of the Background Execution documentation and a few trial apps I'd dismissed this as impossible without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It.. apps I'd dismissed this as impossible without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count of Cellular WiFi data you've used. I suspect that the developer.. without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count of Cellular WiFi data you've used. I suspect that the developer is registering his app..
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 down iPhone iPod iPad so it can only run one app We'd like to 'lock down' an iPhone iPod iPad so that the user can only run one app we've developed this app internally . I'm guessing we'd be looking at jailbreaking and then replacing the default Springboard app... Can.. in iOS 6 called 'guided access' that allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS 7 now includes an 'App Lock' payload as part of the device configuration profile. From the Apple docs By installing an app lock.. config plist over the air from a web server. To deliver your config from the web all you have to do is direct the iPhone to a url containing the profile. Just open the link to your .mobileconfig file in safari. If you don't have web space you can just use dropbox public folder URLs or switch on your mac webserver. It's..
Problem setting exif data for an image http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image setting exif data for an image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict CMGetAttachment sampleBuffer.. setting exif data for an image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict CMGetAttachment sampleBuffer kCGImagePropertyExifDictionary NULL Reading it out it appears valid. Saving an image.. exif data in the image. CGImageDestinationRef myImageDest CGImageDestinationCreateWithURL CFURLRef docurl kUTTypeJPEG 1 NULL Add the image to the destination using previously saved options. CGImageDestinationAddImage myImageDest iref NULL add back exif NSDictionary props NSDictionary dictionaryWithObjectsAndKeys NSNumber..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil to distribute ios application wirelessly without managing UDIDs and recompilation I need to know what methods people are using to distribute internally demo of iPad application wirelessly without having to manage UDID I do not need a solution like testflight or betabuilder all these.. need a solution like testflight or betabuilder all these requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing another studio doing a much smarter way right now and I wish to know how they did it With a link they gave to us we can install their demo application.. I am asking this question because I am seeing another studio doing a much smarter way right now and I wish to know how they did it With a link they gave to us we can install their demo application from a simple HTML over the air and a provisioning profile magically appears in my iPad. All this happened without me telling..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers new to objective c cocoa and iPhone dev in general I have a strong desire to get the most out of the language and the frameworks. One of the resources I'm using is Stanford's CS193P class notes that they have left on the web. It includes lecture notes assignments and sample code and since the course was given by Apple.. class cs193p cgi bin index.php Lecture 08 is related to an assignment to build a UINavigationController based app that has multiple UIViewControllers pushed onto the UINavigationController stack. That's how the UINavigationController works. That's logical. However there are some stern warnings in the slide about.. That's logical. However there are some stern warnings in the slide about communicating between your UIViewControllers. I'm going to quote from this serious of slides http cs193p.stanford.edu downloads 08 NavigationTabBarControllers.pdf Page 16 51 How Not To Share Data Global Variables or singletons This includes your..
How to Mask an UIImageView http://stackoverflow.com/questions/5757386/how-to-mask-an-uiimageview self maskImage OrigImage withMask mask myUIIMage.image maskedImage iphone objective c ios uiimage mask share improve this question The tutorial uses this method with two parameters image and maskImage these you have to set when you call the method. An example call could look like this assuming the method is.. You still have two options. This whole thing is a method which you are calling somewhere. You don't need to create the images inside it this reduces the reusability of the method to zero. To get your code working. Change the methods head 1. to UIImage maskImageMyImages Then change the name of the variable in 2. to UIImage..
How to programmatically determine iPhone interface orientation? http://stackoverflow.com/questions/634745/how-to-programmatically-determine-iphone-interface-orientation interface orientation The possible values for UIDevice.orientation include UIDeviceOrientationFaceUp and UIDeviceOrientationFaceDown . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented in portrait or landscape mode. Is there a way to find.. include UIDeviceOrientationFaceUp and UIDeviceOrientationFaceDown . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented in portrait or landscape mode. Is there a way to find the current orientation of the GUI in cases where the device.. an interface oriented in portrait or landscape mode. Is there a way to find the current orientation of the GUI in cases where the device is returning ambiguous information I suppose I could track orientation change events to remember the last portrait landscape orientation or check the main UIView's bounds height and width..
Understanding reference counting with Cocoa and Objective-C http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c reference counting with Cocoa and Objective C I'm just beginning to have a look at Objective C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably comfortable with C's malloc and free concept but Cocoa's.. a view to playing with the iPhone SDK. I'm reasonably comfortable with C's malloc and free concept but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release retain and autorelease work and what are the conventions.. with C's malloc and free concept but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release retain and autorelease work and what are the conventions about their use Or failing that what did you read which helped you..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key to dismiss keyboard for UITextView with return key In IB's library the introduction tells us that when the return key is pressed the keyboard for UITextView will disappear. But actually the return key can only act as ' n'. I can add a button and use txtView.. us that when the return key is pressed the keyboard for UITextView will disappear. But actually the return key can only act as ' n'. I can add a button and use txtView resignFirstResponder to hide the keyboard. But is there a way to add the action for the return key in keyboard so that I needn't add another button. iphone.. iphone objective c keyboard uitextview iphone softkeyboard share improve this question UITextView does not have any methods which will be called when the user hits the return key. If you want the user to be able to add only one line of text use a UITextField . Hitting the return and hiding the keyboard for a UITextView..
Open Source Cocoa/Cocoa-Touch POP3/SMTP library? http://stackoverflow.com/questions/740939/open-source-cocoa-cocoa-touch-pop3-smtp-library I'm looking to write a sample application speaking to a POP3 SMTP server. Instead of re inventing the wheel with BSD sockets and CFNetwork type calls I'm curious if there is currently any open source libraries that already take care of alot of the dirty work I've tried Googling without much luck for anything. Perhaps there's.. I'm overlooking to simplify this. Thanks. iphone objective c cocoa cocoa touch pop3 share improve this question MessageFramework on CocoaDev lists various possibilities Sending emails from Cocoa also lists several frameworks including Pantomime MailCore and EdMessage the site for this seems to be down but there is.. seems to be down but there is a mirror on github which has also been modified to compile for 10.4 as well as 10.5 so should work on the iPhone Example code using Pantomime from the above blog post CWMessage message CWMessage alloc init CWInternetAddress address address CWInternetAddress alloc initWithString @ from@gmail.com..
iPhone App ??#160;Add voice recognition? [closed] http://stackoverflow.com/questions/942312/iphone-app-add-voice-recognition App #160 Add voice recognition closed I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature but I'm curious about doing it on a start up level. Anyone looked into this.. voice recognition closed I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature but I'm curious about doing it on a start up level. Anyone looked into this Are there any tools out there for us to do this iphone speech recognition voice recording speech to.. companies like Google etc implement this feature but I'm curious about doing it on a start up level. Anyone looked into this Are there any tools out there for us to do this iphone speech recognition voice recording speech to text share improve this question OpenEars looks promising... http www.politepix.com openears..
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance saw that the first question I get asked is Does your application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you.. application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you need to do anything to get permission to use it either.. and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you need to do anything to get permission to use it either from Apple or from..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption would be better. Thanks. iphone encryption app store share improve 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 the Exporter.. your app every January. 2nd Question Does your product qualify for any exemptions provided under category 5 part 2 There are several exemptions available in US export regulations under Category 5 Part 2 Information Security Encryption regulations for applications and software that use access implement or incorporate encryption...
How can I deploy an iPhone application from Xcode to a real iPhone device? http://stackoverflow.com/questions/246422/how-can-i-deploy-an-iphone-application-from-xcode-to-a-real-iphone-device I deploy an iPhone application from Xcode to a real iPhone device How can I deploy an iPhone application from Xcode to real iPhone device without having a US 99 Apple certificate iphone xcode deployment certificate share improve this question It sounds like the application isn't signed. Download ldid from Cydia..
What is the best way to enter numeric values with decimal points? http://stackoverflow.com/questions/276382/what-is-the-best-way-to-enter-numeric-values-with-decimal-points happens to also be the simplest. You don't need a decimal separator key Why Because you can simply infer it from the user's input. For instance in the US locale when you what to enter in 1.23 you start by entering the numbers 1 2 3 in that order . In the system as each character is entered this would be recognized..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store you can give iphone ios app store appstore approval share improve this question Official Developer Program For a standard iPhone you'll need to pay the US 99 yr to be a member of the developer program. You can then use the adhoc system to install your application onto up to 100 devices. The developer program has the..
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 fmt NSDateFormatter alloc init fmt setDateFormat @ yyyyMMddHHmmss NSString dateStr fmt stringFromDate someDate fmt release Then it works fine in the US and most locales UNTIL ... someone with their phone set to a 24 hour region sets the 12 24 hour switch in settings to 12. Then the above starts tacking AM or PM.. As Designed and they aren't going to fix it. The circumvention is apparently to set the locale of the date formatter for a specific region generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc loc release Not too bad in onsies twosies but I'm dealing.. set the locale of the date formatter for a specific region generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc loc release Not too bad in onsies twosies but I'm dealing with about ten different apps and the first one I look at has 43 instances of this scenario...
How can I upload a photo to a server with the iPhone? http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone takes a photo and then uploads it to a server. How do I upload a photo to a server with Cocoa in Xcode I suppose I use NSUrl somewhere. Thanks iphone cocoa touch cocoa networking share improve this question Header @interface EPUploader.. Uploader Private upload Uploads the given file. The file is compressed before beign uploaded. The data is uploaded using an HTTP POST command. Results None Side effects None void upload NSData data NSData dataWithContentsOfFile filePath.. urlRequest delegate self if connection self uploadSucceeded NO Now wait for the URL connection to call us back. Uploader Private postRequestWithURL boundry data Creates a HTML POST request. Results The HTML POST request...
OpenGL ES iPhone - drawing anti aliased lines http://stackoverflow.com/questions/1813035/opengl-es-iphone-drawing-anti-aliased-lines ES iPhone drawing anti aliased lines Normally you'd use something like glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND glEnable GL_LINE_SMOOTH glLineWidth 2.0f.. opengl es line antialiasing share improve this question One can achieve the effect of anti aliasing very cheaply using vertices with opacity 0. Here's an image example to explain Comparison with AA You can read a paper about this here http.. an image example to explain Comparison with AA You can read a paper about this here http research.microsoft.com en us um people hoppe overdraw.pdf You could do something along this way Colors is a pointer to unsigned bytes 4 per color . Should..
Send and receive messages through NSNotificationCenter in Objective-C? [closed] http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c nil Add this instance of TestClass as an observer of the TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil we tell the notification.. as an observer of the TestNotification. We tell the notification center to inform us of TestNotification notifications using the receiveTestNotification selector. By specifying object nil we tell the notification center that we are not interested.. receiveTestNotification NSNotification notification notification name should always be @ TestNotification unless you use this method for observation of other notifications as well. if notification name isEqualToString @ TestNotification NSLog..
Horizontal UITableView http://stackoverflow.com/questions/2870680/horizontal-uitableview uitableview provides I basically want to do somthing similar to what the BBC News reader app http itunes.apple.com us app bbc news id364147881 mt 8 on the Ipad does with the list of stories to select from. Thanks iphone orientation ipad.. I have published sample code that demonstrates one approach for implementing horizontally scrolling table views using transforms. It's called EasyTableView and provides the same interface for both vertically and horizontally scrolling..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework the apple FFT and accelerate Framework Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it I know that apple.. Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it I know that apple has some sample code posted but I'm not really sure how to implement it into an actual project. iphone.. I'm not really sure how to implement it into an actual project. iphone audio fft share improve this question I just got the FFT code working for an iPhone project create a new project delete all the files except for main.m and xxx_info.plist..
Client/Server GKSessions http://stackoverflow.com/questions/4194394/client-server-gksessions Server GKSessions I have an application thats is set up so that if the user selects the device to be a server it creates a GKSession in server mode and if it selects cient it create a GKSession.. create a GKSession in client mode. Whats happening at the moment is the server is sending out the data fine which is just a string containing the time of the server. The problem starts however when i have one client already connected to the.. problem starts however when i have one client already connected to the server and I then connect another client because the second connected client connects also to the first client for some reason. I want to be able to not connect to other..
iPhone - Backgrounding to poll for events http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events much reading of the Background Execution documentation and a few trial apps I'd dismissed this as impossible without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman.. without abusing the background APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count of Cellular WiFi.. APIs. Last week I found this application which does exactly that. http itunes.apple.com us app dataman real time data usage id393282873 mt 8 It runs in the background and keeps track of the count of Cellular WiFi data you've used. I suspect..
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 down iPhone iPod iPad so it can only run one app We'd like to 'lock down' an iPhone iPod iPad so that the user can only run one app we've developed this app internally . I'm guessing we'd be looking at jailbreaking and then replacing.. allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS 7 now includes an 'App Lock' payload as part of the device configuration profile. From.. server. To deliver your config from the web all you have to do is direct the iPhone to a url containing the profile. Just open the link to your .mobileconfig file in safari. If you don't have web space you can just use dropbox public folder..
Problem setting exif data for an image http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image setting exif data for an image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict.. exif data for an image I'm using the new ImageIO framework in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict CMGetAttachment sampleBuffer kCGImagePropertyExifDictionary NULL Reading it.. myImageDest CGImageDestinationCreateWithURL CFURLRef docurl kUTTypeJPEG 1 NULL Add the image to the destination using previously saved options. CGImageDestinationAddImage myImageDest iref NULL add back exif NSDictionary props NSDictionary..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil distribute ios application wirelessly without managing UDIDs and recompilation I need to know what methods people are using to distribute internally demo of iPad application wirelessly without having to manage UDID I do not need a solution like.. all these requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing another studio doing a much smarter way right now and I wish to know how they did it With a link they gave.. seeing another studio doing a much smarter way right now and I wish to know how they did it With a link they gave to us we can install their demo application from a simple HTML over the air and a provisioning profile magically appears in my..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers dev in general I have a strong desire to get the most out of the language and the frameworks. One of the resources I'm using is Stanford's CS193P class notes that they have left on the web. It includes lecture notes assignments and sample code.. 08 is related to an assignment to build a UINavigationController based app that has multiple UIViewControllers pushed onto the UINavigationController stack. That's how the UINavigationController works. That's logical. However there are.. some stern warnings in the slide about communicating between your UIViewControllers. I'm going to quote from this serious of slides http cs193p.stanford.edu downloads 08 NavigationTabBarControllers.pdf Page 16 51 How Not To Share Data Global..
How to Mask an UIImageView http://stackoverflow.com/questions/5757386/how-to-mask-an-uiimageview mask myUIIMage.image maskedImage iphone objective c ios uiimage mask share improve this question The tutorial uses this method with two parameters image and maskImage these you have to set when you call the method. An example call could.. thing is a method which you are calling somewhere. You don't need to create the images inside it this reduces the reusability of the method to zero. To get your code working. Change the methods head 1. to UIImage maskImageMyImages Then change..
iPhone call log / history http://stackoverflow.com/questions/6214725/iphone-call-log-history iPhone . I searched the API including Core Telephony and didn't find anything myself either. So why this question Because this app in the App Store seems to be doing this without a problem... http itunes.apple.com us app callog id327883585 mt.. why this question Because this app in the App Store seems to be doing this without a problem... http itunes.apple.com us app callog id327883585 mt 8 iphone api history call logging share improve this question To bring things back into attention.. Broken. On my friends non jail broken iPhone FMDB is giving an error DB Error 23 authorization denied So this file must be sandboxed as I initially expected I searched high and low again but can't seem to find anything that will do... but..
How to programmatically determine iPhone interface orientation? http://stackoverflow.com/questions/634745/how-to-programmatically-determine-iphone-interface-orientation values for UIDevice.orientation include UIDeviceOrientationFaceUp and UIDeviceOrientationFaceDown . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented in portrait.. and UIDeviceOrientationFaceDown . While it might be useful to know that the device is flat this doesn't tell us whether it's flat displaying an interface oriented in portrait or landscape mode. Is there a way to find the current orientation.. mode. Is there a way to find the current orientation of the GUI in cases where the device is returning ambiguous information I suppose I could track orientation change events to remember the last portrait landscape orientation or check..
Understanding reference counting with Cocoa and Objective-C http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c reference counting with Cocoa and Objective C I'm just beginning to have a look at Objective C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably comfortable.. I'm reasonably comfortable with C's malloc and free concept but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release retain and autorelease.. Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it but I'm just not over the hump yet. How do release retain and autorelease work and what are the conventions about their use Or failing..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key to dismiss keyboard for UITextView with return key In IB's library the introduction tells us that when the return key is pressed the keyboard for UITextView will disappear. But actually the return key can only act.. the keyboard for UITextView will disappear. But actually the return key can only act as ' n'. I can add a button and use txtView resignFirstResponder to hide the keyboard. But is there a way to add the action for the return key in keyboard.. iphone softkeyboard share improve this question UITextView does not have any methods which will be called when the user hits the return key. If you want the user to be able to add only one line of text use a UITextField . Hitting the return..
What exactly does delegate do in xcode ios project? http://stackoverflow.com/questions/7215698/what-exactly-does-delegate-do-in-xcode-ios-project exactly does delegate do in xcode ios project I have just been learning iPhone apps development but I have a hard time in understanding what delegate actually means Can anyone tell.. think about it ahead of the technical details is important. Simply put a delegate is a callback. Two main scenarios to use delegates A class or control wants to abstract out the details on how to do work like retrieve data . Allow others to hook.. how to do work like retrieve data . Allow others to hook code into a pipeline. Examples UITableView a table view is just a control that knows how to render a list of cells. It handles all the heavy lifting of rendering scrolling etc... But..
Open Source Cocoa/Cocoa-Touch POP3/SMTP library? http://stackoverflow.com/questions/740939/open-source-cocoa-cocoa-touch-pop3-smtp-library speaking to a POP3 SMTP server. Instead of re inventing the wheel with BSD sockets and CFNetwork type calls I'm curious if there is currently any open source libraries that already take care of alot of the dirty work I've tried Googling without.. iphone objective c cocoa cocoa touch pop3 share improve this question MessageFramework on CocoaDev lists various possibilities Sending emails from Cocoa also lists several frameworks including Pantomime MailCore and EdMessage the site.. on github which has also been modified to compile for 10.4 as well as 10.5 so should work on the iPhone Example code using Pantomime from the above blog post CWMessage message CWMessage alloc init CWInternetAddress address address CWInternetAddress..
iPhone App ??#160;Add voice recognition? [closed] http://stackoverflow.com/questions/942312/iphone-app-add-voice-recognition App #160 Add voice recognition closed I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature but I'm curious about doing it on a.. build an app that uses voice recognition. I've seen big companies like Google etc implement this feature but I'm curious about doing it on a start up level. Anyone looked into this Are there any tools out there for us to do this iphone speech.. feature but I'm curious about doing it on a start up level. Anyone looked into this Are there any tools out there for us to do this iphone speech recognition voice recording speech to text share improve this question OpenEars looks promising.....
Detecting current iPhone input language http://stackoverflow.com/questions/1414876/detecting-current-iphone-input-language currentInputMode .primaryLanguage will give you an NSString representing the BCP 47 language code such as œes œen US or œfr CA You can register for the UITextInputCurrentInputModeDidChangeNotification to be alerted when the current input..
Is an iPhone call recorder app theoretically possible? http://stackoverflow.com/questions/1809347/is-an-iphone-call-recorder-app-theoretically-possible
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance is Does your application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using.. on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you need to do.. and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this sort of purpose If so did you need to do anything to get permission..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption app store share improve 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.. your product qualify for any exemptions provided under category 5 part 2 There are several exemptions available in US export regulations under Category 5 Part 2 Information Security Encryption regulations for applications and software that..
How can I deploy an iPhone application from Xcode to a real iPhone device? http://stackoverflow.com/questions/246422/how-can-i-deploy-an-iphone-application-from-xcode-to-a-real-iphone-device to a real iPhone device How can I deploy an iPhone application from Xcode to real iPhone device without having a US 99 Apple certificate iphone xcode deployment certificate share improve this question It sounds like the application..
What is the best way to enter numeric values with decimal points? http://stackoverflow.com/questions/276382/what-is-the-best-way-to-enter-numeric-values-with-decimal-points You don't need a decimal separator key Why Because you can simply infer it from the user's input. For instance in the US locale when you what to enter in 1.23 you start by entering the numbers 1 2 3 in that order . In the system as each character..
Determine iPhone user's country http://stackoverflow.com/questions/3043335/determine-iphone-users-country determining country from what location services provides Initially I only need to check whether the user is inside the US or not but this may change in the future to add more countries. I understand that location can not always be determined.. user may have location services turned off. Basically I just need to know if the user is detected as being inside the US in order to turn off a specific feature. EDIT On further reading it looks like MKReverseGeocoder would be the way to go..
iPhone App Localization - English problems? http://stackoverflow.com/questions/3308519/iphone-app-localization-english-problems around with things to force it to use a different translation setting I've just done this for choosing between English US and en_GB British english . In your main.m file alter it so it looks something like below put in your own tests for NZ or..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store approval share improve this question Official Developer Program For a standard iPhone you'll need to pay the US 99 yr to be a member of the developer program. You can then use the adhoc system to install your application onto up to..
Why does test iAd for barebones project not display? [duplicate] http://stackoverflow.com/questions/5953418/why-does-test-iad-for-barebones-project-not-display doesn't indicate this in particular but it's important to know that in May 2011 when this answer was written iAds are US only so as long as your device or the simulator thinks you're outside of the US you won't receive any ads. share improve..
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 fmt setDateFormat @ yyyyMMddHHmmss NSString dateStr fmt stringFromDate someDate fmt release Then it works fine in the US and most locales UNTIL ... someone with their phone set to a 24 hour region sets the 12 24 hour switch in settings to 12... to fix it. The circumvention is apparently to set the locale of the date formatter for a specific region generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc loc release Not too.. a specific region generally the US but this is a bit messy NSLocale loc NSLocale alloc initWithLocaleIdentifier @ en_US df setLocale loc loc release Not too bad in onsies twosies but I'm dealing with about ten different apps and the first one..
NSNumberFormatter to format US Telephone Numbers http://stackoverflow.com/questions/665111/nsnumberformatter-to-format-us-telephone-numbers to format US Telephone Numbers I'm trying to convert a string of numbers entered by the user into a sexy string like Phone.app on the..
Why NSDate is reporting the wrong date? http://stackoverflow.com/questions/6741519/why-nsdate-is-reporting-the-wrong-date iphone nsdate share improve this question NSDate's description method returns times in UTC which if you are in the US Eastern Time Zone during daylight savings time is 4 hours later than your wall clock time. In other words at 10pm your time..
|