ios5

Issues handing over managedObjectContext

与世无争的帅哥 提交于 2019-12-25 01:39:16
问题 I have been reading up most questions on this item, but somehow I can't figure this one out. I managed easily to hand over the ManagedObjectContext from the AppDelegate to the first view in previous applications I tried, where the initial viewController handled also the data. Now in a new application I am building, I need an initial screen where the user needs to make a selection (through a few possible buttons). On this screen my MOC is still intact as per my troubleshooting (the NSLog

PHP Exporting to Excel, on iPad

若如初见. 提交于 2019-12-25 01:38:50
问题 I have a script to output a mysql result to excel, which is working just fine in all browsers. However, I need the script to also work on iPad, opening the excel in Safari. At this moment, the script just "hangs" on the iPad, it keeps loading. Is this a headers problem? The code headers at this moment: header( 'Content-Transfer-Encoding: binary' ); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Type: application/vnd.ms-excel'); //header("Content-Type:

UIWebView: Images are not updating

╄→гoц情女王★ 提交于 2019-12-25 01:24:04
问题 I am using UIWebView to load HTML Page. From that HTML I have generated PDF file. My PDF file content changes as per the HTML data changes. when I change the Signature(Image) of the user in application respective PDF will not change to new signature. It shows the previous signature. How can I reload that UIWebView? 回答1: If you are using same url with updated content use this. UIWebView* webV=[[UIWebView alloc]init]; NSString* htmlString= @"Loading..."; [webV loadHTMLString:htmlString baseURL

How can I correctly change the way a UITabBar appears using the appearance proxy?

余生长醉 提交于 2019-12-25 01:15:43
问题 Since I am developing an iOS >= 5.0 application, I am trying to change the appearance of the main UI components through the appearance proxies. When dealing with the UITabBar component, I correctly changed its tintColor to a light shade of gray trough the [[UITabBar appearance] setTintColor:] method. But doing this, the UITabBarItem s included in the bar are quite impossible to see, since they retain the old gray/white color in their title label. I tried to change their appearance through the

How can i pass data back to parent view controller. am using addSubView method to show child view

隐身守侯 提交于 2019-12-25 00:14:49
问题 How can i pass data back to parent view controller. im using addSubView method to show child view. addFields = [[AddFields alloc] initWithNibName:@"AddFields" bundle:nil]; [self.view addSubview:addFields.view]; Now i want to sent data from "AddFields" view to my parent controller. How can i do that. Can anyone help me.. 回答1: One simple way to do is using NSNotificationCenter see this example Post you notification from your AddFields when you want to send the object [[NSNotificationCenter

passed object nil into my second view

∥☆過路亽.° 提交于 2019-12-24 23:24:30
问题 I have a CalendarView and I've passed the object to another UIView with a tableView in it. In my CalendarView: anotherView *anotherViewController = [[anotherView alloc] init]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"dd-MM-yyyy"]; NSString *dateString = [formatter stringFromDate:aDateObject]; anotherViewController.eventDate = aDateObject; anotherViewController.eventDateTitle = dateString; [formatter release]; [anotherViewController release]; I

NSURLConnection doesn't receive data when creating many downloading objects in iOS5

…衆ロ難τιáo~ 提交于 2019-12-24 23:18:20
问题 I have been searching for this problem on the SOF for several days and I still have not found the solution (say the same problem) yet. I'm making and app that downloads 5 images simultaneously in an URL list (each image is on a different server). I have an ImageDownloader class subclasses NSOperation and implements the NSURLConnectionDataDelegate . So that I can add an instance of ImageDownloader to an operationQueue in the ViewController and it will run in a separate thread under the

Creating XML Documents with GDataXML

好久不见. 提交于 2019-12-24 20:45:50
问题 I don't know how can I create XML document using GDataXML nor I could find any good link which can help me.Please tell me how can I perform this or give some good link. 回答1: Take look at http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml tutorial. It will help you. 回答2: First create and store the xml value to a string. Then use the following method to create the xml file in the document directory. //Method writes a string to a xml file -(void) writeToXMLFile:

Do I need a second NSFetchedResultsController

拥有回忆 提交于 2019-12-24 20:40:42
问题 A function of my app uses core data to store expenses of user as an attribute. I'm trying to display the sum of all these expenses on the first section of my table view controller. I've got it working perfectly when the sum is displayed at the section 1 of my table. However when I use the section 0 it just breaks. I've debugged the app to find out where and why it breaks. I figured out that the problem comes up when calling fetchedResultsController twice. - (NSInteger)tableView:(UITableView *

Removing Tab bar on Push view

断了今生、忘了曾经 提交于 2019-12-24 19:46:49
问题 i have added tab bar in app delegate. When i pushed the view from one of my view te tab bar got removed. I want that tab bar on pushed view also. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ AudioViewController * audioViewController = [[AudioViewController alloc] initWithNibName:@"AudioViewController" bundle:nil]; audioViewController.title = @"audio"; audioViewController.tabBarItem.image=[UIImage imageNamed:@"audio 30x30.png"];