iphone-sdk-3.0

is it possible to make a Dynamic application with NSClassFromString()?

一笑奈何 提交于 2019-12-12 04:24:51
问题 I want to use XML or JSON to told my app. I want to make a dynamic application that will change a feature by passing class from XML. is it possible ? if YES, could you please show me how to use NSClassFromString to interface with XML or JSON parser? 回答1: NSClassFromString() only returns a Class object. It's not possible to serialize a classes methods and unpack them in this way. You could define your own string format for classes but you can't add completely new methods at runtime (it's

unable to show anything on x-axis and y-axis labels in core-plot

社会主义新天地 提交于 2019-12-12 04:00:03
问题 I'm using core plot in an application and from past one week I am trying to show labels on x-axis and y-axis. But haven't succeed yet. I'm posting my code here with screen shot. If someone knows any solution to fix the problem let me know urgently. Code - -(void)viewDidLoad { [super viewDidLoad]; // Initialize all graph dependent data. //self.dataForPlot = [[NSMutableArray alloc] initWithCapacity:0]; minYValues = [[NSMutableArray alloc] initWithCapacity:0]; maxYValues = [[NSMutableArray alloc

Parsing a .txt or html file into a string in the iPhone SDK

匆匆过客 提交于 2019-12-12 02:09:08
问题 So, what I'm trying to do, is take a .txt or html file, being able to search through it, and grab a piece of text from file, place it into a string and finally adding it into a textView. Each couple of piece of text will be divided like this: 001:001 Text1 001:002 Text2 001:003 Text3 002:001 Text1a 002:002 Text1b ... and so on So essentially you would search the text for those numbers, and it would grab the text only. Is there a way to do that using objective C and using it on a iPhone app?

Core Data VS SQL Statement, which one is gd for iphone development?

一个人想着一个人 提交于 2019-12-12 01:34:29
问题 iPhone 3.0 support the Core Data, it seems a great tool for developer. But SQL statement seems it is easier to get start, but core data is easier for maintaining db. But I'm considering the SQL statement, because it seems have better performance. I am consider which one is better for iPhone development, any suggestion? 回答1: The answer is actually much simpler than either of those blog posts make it appear. The rule is: If you are developing for any OS X platform; If you are not accessing a

unclear use of @property in window app using core data

北城余情 提交于 2019-12-12 01:31:27
问题 Looking through a Window based application ive used to experiment with as a way of getting my head around core data, ive noticed that the appdelegate has the following code myAppDelegate.h #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface myAppDelegate : NSObject <UIApplicationDelegate> { NSManagedObjectModel *managedObjectModel; NSManagedObjectContext *managedObjectContext; NSPersistentStoreCoordinator *persistentStoreCoordinator; UIWindow *window; UITabBarController

Help on capturing screen

狂风中的少年 提交于 2019-12-12 01:29:03
问题 i want to take screenshots in landscape mode. currently my below code takes screenshots in PORTRAIT mode. also i want to store the images into the given location not in photo library.. how can i attain this... thanks for any help below is my code UIGraphicsBeginImageContext(self.view.bounds.size) ; [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum

How to monitor pdf download process in iphone sdk

送分小仙女□ 提交于 2019-12-12 01:15:34
问题 In my application i need to download pdf file from url.i know how to download pdf file from url and store in local document directory.But i need to show downloading process and i want to know whether download is completed.Please any body give an idea.. Here My code: NSData *pdfData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://www.msy.com.au/Parts/PARTS.pdf"]]; //Store the Data locally as PDF File NSString *resourceDocPath = [[NSString alloc] initWithString:[[[

iPhone interface orientation statement not working in OS 3.0?

泄露秘密 提交于 2019-12-11 19:56:44
问题 I have the following code which evaluates to true and runs the code inside the braces I rotate to the right (or left) in OS 2.2.1. However the same line of code does not evaluate to true (or go into the braces) if compiled and run for OS 3.0... I say this because in the debugger (and the log) the lines inside the braces get skipped if I've compiled for 3.0 This is inside of a textViewDidBeginEditing method on a textView... Did something change between 2.x and 3.0 relative to how this is

iPhone firmware

笑着哭i 提交于 2019-12-11 18:44:05
问题 I developed one iPhone application using iPhone OS 2.2. It works fine in the emulator. When I install the application in my iPhone using iTunes (ipa file), it isn't working. One thing that : my iPhone firmware is 3.0, is it the problem? Does iPhone OS 3.0 (on real hardware) work the application that are developed on iPhone OS 2.2 ? 回答1: no you will need to download the iPhone 3.0 software developers kit (SDK), from the apple iphone developers site. There is a link to download on this page.

Why the UIScrollViewDelegate is not working?

回眸只為那壹抹淺笑 提交于 2019-12-11 18:29:36
问题 I have a viewController called "HaveScrollController", and this is something like this: @interface HaveScrollController : UIViewController <UIScrollViewDelegate>{ IBOutlet UIScrollView *scrollView; IBOutlet UIView *firstView; IBOutlet UIView *secondView; IBOutlet UIView *thridView; IBOutlet UIView *fourthView; } @property (retain, nonatomic) UIScrollView *scrollView; @property (retain, nonatomic) UIView *firstView; @property (retain, nonatomic) UIView *secondView; @property (retain, nonatomic