iphone

Include a picture in mailto:

青春壹個敷衍的年華 提交于 2021-02-05 08:49:58
问题 I'm interested in placing a picture (along with some text) in a prepared email for the user to send off. Is there any way to use mailto: to do that? 回答1: No. The mailto: scheme does not support attachment. (See http://www.faqs.org/rfcs/rfc2368.html). If you write an app you can attach an image with MFMailComposeViewController . 回答2: No, mailto: is just a HREF target for the A tag, and just instructs the operating system to open the mail browser to a specific location (with subject). To send a

Read SD card files from an iOS app [duplicate]

与世无争的帅哥 提交于 2021-02-05 06:00:47
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to read SD card contents through iPad Camera Connection Kit in iOS SDK? I want to write an iOS app to access the data in a SD card via Apple's SD card reader. I am wondering what Framework in Xcode I need to import or I am allowed to develop this kind of app related to file access from external storage. 回答1: As of yet, developers do not have access to the SD reader attachment. 回答2: The drive should get

How to get a particular view controller from the stack of viewcontrollers in the navigation controller?

怎甘沉沦 提交于 2021-02-05 05:54:25
问题 I have an application in which i am having a table view.when pressing a button on the cell i have to go to another view controller(ie:testviewcontroller) showing what i selected in the previous one.then when pressing one button i need to go to another view controller showing the remaing values.if he select one there then i need to repeat the above process.The problem is from here also i am carrying some values to that testviewcontroller.if i pop back to my view controller how can i carry the

How to get a particular view controller from the stack of viewcontrollers in the navigation controller?

风格不统一 提交于 2021-02-05 05:54:06
问题 I have an application in which i am having a table view.when pressing a button on the cell i have to go to another view controller(ie:testviewcontroller) showing what i selected in the previous one.then when pressing one button i need to go to another view controller showing the remaing values.if he select one there then i need to repeat the above process.The problem is from here also i am carrying some values to that testviewcontroller.if i pop back to my view controller how can i carry the

UIToolBar - disable buttons

為{幸葍}努か 提交于 2021-02-04 14:49:08
问题 in my app I have a toolbar and at a certain point I want to disable or enable some buttons. What is the easiest way to do so? How can I access items property of UIToolbar? Here is my code: -(void)addToolbar { NSMutableArray *buttons = [[NSMutableArray alloc] init]; //Define space UIBarButtonItem *flexibleSpaceItem; flexibleSpaceItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemFlexibleSpace target:nil action:NULL]; //Add "new" button UIBarButtonItem *newButton

Xcode 4.6 error - Timed out waiting for app to launch

 ̄綄美尐妖づ 提交于 2021-02-04 10:45:19
问题 I am building an app in Release, and running on an iPhone 4s. When I click on run, everything works well, my application even runs on the iPhone. But after some times, I have an error from Xcode : "Timed out waiting for app to launch" while my app is still running. How to deal with it? 回答1: Check which provisioning you are using, it seems that ad-hoc provisioning cannot be used for debugging. If your problem is not solve with above instruction then also try these: Stop the app from running in

Pod Install fails when installing MuPDF

喜夏-厌秋 提交于 2021-01-29 20:50:51
问题 I'm developing a pdf viewer app and I'm using MuPdf library cocoapods. I created a new project, added a pod file and ran pod install. Following error occurred. Any help is appreciated to fix this. I have set automatically manage signing in the project. Analyzing dependencies Downloading dependencies Installing MuPDF (1.10) [!] /bin/bash -c set -e cd platform/ios # release armv7 + arm64 xcodebuild -scheme MuPDF -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO # debug 64bit

Error ReactNative AsyncStorage is null iOS

我是研究僧i 提交于 2021-01-29 17:52:15
问题 I am developing an app with ReactNative using asyncStorage, on Android it is working fine, I have the problem on iOS, I can't solve the problem: Error: [@ RNC / AsyncStorage]: NativeModule: AsyncStorage is null. Here is a picture of the error I've tried all the instructions you put in the error message, and I've looked for the same error and can't find the solution. Let's see if anyone has had the same experience with this error and can help me, thank you very much. More information: I'm not

Comparing date string with NSPredicate

二次信任 提交于 2021-01-29 17:34:34
问题 I was wondering if there's anyway to filter a set using NSPredicate sorted by date, where the date is an NSString in MMMM dd (i.e. March 24) format (it's NOT an NSDate.). 回答1: If you are storing the date as a string in CoreData, the predicate is simple. NSPredicate* predicate = [NSPredicate predicateWithFormat:@"theDate like %@", theDateString]; But I'm guessing that the date is stored as an NSDate object. Look into using NSDateFormatter to convert your string to an NSDate. NSDateFormatter*

Redirect loop only on iPhone, and only when using mobile data

风格不统一 提交于 2021-01-29 17:25:55
问题 I have a site that, when certain links are clicked, gets sent into an infinite redirect loop rather than going to the linked page. But it is only happening to iPhone users. And only when they have wifi turned off. It doesn't happen when they're connected to wifi. I cannot recreate the issue in Browserstack. And I've confirmed that the links work fine in Android, both on wifi and mobile data. It's a WordPress site with standard Rewrites in the .htaccess file, so no culprit there. And there's