ipod-touch

simulate “Add to Home Screen” feature on older iPod touch

荒凉一梦 提交于 2019-12-10 11:49:27
问题 I have a jailbroken iPod Touch 1.1.4, and want to experiment with creating minimalistic "apps" just by scripting, launching Safari to a "webapp". But 1.1.4 does not have the "Add to Home Screen" shortcut option. Is there a way to simulate this just by scripting? I've tried editing the HelloPython Bash script, changing it to: #!/bin/bash /Applications/MobileSafari.app/MobileSafari http://gnixl.com/ And I get the error: ABORT: Unable to register "com.apple.mobilesafari" port, 1103 unknown error

Getting the last 2 directories of a file path

為{幸葍}努か 提交于 2019-12-08 16:22:46
问题 I have a file path of, for example /Users/Documents/New York/SoHo/abc.doc . Now I need to just retrieve /SoHo/abc.doc from this path. I have gone through the following: stringByDeletingPathExtension -> used to delete the extension from the path. stringByDeletingLastPathComponent -> to delete the last part in the part. However I didn't find any method to delete the first part and keep the last two parts of a path. 回答1: NSString has loads of path handling methods which it would be a shame not

This App Is Incompatible With This iPod touch

本秂侑毒 提交于 2019-12-08 12:51:06
问题 I have developed an app that required iOS >= 4.0. But when I download it from App Store by using my iPod touch 2 (iOS 4.2.1), it says "This App Is Incompatible With This iPod touch". I don't know why. And when I use this iPod touch to run the app through Xcode, it also don't run on my iPod touch. How can I debug this error? I have read this and my app build settings show that "Architectures" is "Standard(armv7)" and "Valid Architectures" is "armv6 armv7", I wondered if it's wrong. 回答1: How to

What is the correct way to distribute bespoke iphone apps?

眉间皱痕 提交于 2019-12-08 02:51:57
问题 I have developed a few app store applications but recently have been asked by small and medium companies if I would be interested in developing bespoke apps. I find the license and contracts with Apple a little confusing to say the least, there are 3 types of build a developer can produce. App store Ad Hoc Enterprise App store is not required as these are private projects. Ad Hoc seems to be limited to 100 pre-identified devices which again isn't ideal and Enterprise is for 250+ applications?

iPod touch iOS6 - elements with large background images show up blank

拥有回忆 提交于 2019-12-08 02:17:14
问题 I've reproduced this on two separate iPod touch devices running iOS 6. iPhone does not seem to be affected, neither is iPad. I'm using a sprite file for images in my web application. I am now trying to provide retina support, so I have created a separate retina sprite file which is twice the dimensions of the low quality one. It seems like neither Chrome nor Safari like to display this. I'm doing the following: .img { background: url(xx-retina.png) no-resize top left; height: xx; width: xx;

iOS required device capabilities autofocus camera

て烟熏妆下的殇ゞ 提交于 2019-12-07 17:55:49
问题 I have an iOS app where I set the Required Device Capabilities config setting to require both still-camera and auto-focus-camera because it needs to run on newer generation devices that have the better auto-focus camera sensor. I'm now getting users reporting that they are unable to use the app on new iPod Touches (4th gen) and iPad 2 devices. Both these have the newer camera so they should work, unfortunately I dont have either of these devices to debug with. Have the device capability

Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone?

烈酒焚心 提交于 2019-12-07 16:23:29
问题 We have an offline Safari application with UI designed for vertical use (pixel perfect). We would like the UI to stay vertical no matter what how the user rotates the ipod / iphone. Is it possible with offline Safari application? This question is exactly the same as Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone? . Yet - the referenced question has no definite answer and has been prematurely accepted. 回答1: I'm not aware of any way to prevent the rotation if

Differences between iPhone/iPod Simulator and Devices

依然范特西╮ 提交于 2019-12-06 10:53:42
问题 Since I started iPhone/iPod Development I have come across some differences between how the simulator and how real device react. Maybe I will come across some other differences I will have to figure out as well, maybe other people haven't met these problems here (YET) and can profit from the knowledge, and maybe you know some problems/differences that you would have been happy to know about earlier before you spent several hours or days figuring out what the heck is going on. So here is what

iPhone App: Beta testing on specific device before app goes to App Store

a 夏天 提交于 2019-12-06 08:05:34
I have registered 2 devices in App program portal. Only I have a Mac & device to download the App for testing. The other user does not have a Mac. But he has an iPhone. Is it possible for the other user to have the App downloaded for testing so we can discuss if we need any modifications before making the App live on App Store for public. Use Ad Hoc distribution . Follow the steps here to package the app for the tester. Publishing Applications for Testing Then the tester should follow the steps here for installation. Instructions for Application Testers Edit: Both links are to the reference

How can I check missed call in iPhone using Objective-C?

一个人想着一个人 提交于 2019-12-06 06:07:28
问题 How can I check missed call in iPhone using Objective-C? 回答1: There is no access to the iPhone phone from third party software. Luckily. 回答2: The sandbox prevents access to the phone functions from third-party apps. Thus there is no way to detect missed calls. 回答3: Using Core Telephony framework, detect for call state changes. Listen for incoming calls. Now your application will be notified when there is an incoming call. After this, when the alert pops up, applicationWillResignActive is