I'm in urgent need of an Objective-C/Cocoa/Cocoa Touch framework to handle simple charting; pie chards, histograms etc.
The only thing that comes close is:
http://code.google.com/p/gchart-objc/
But it seems to be quite an early release and not maintained.
Has anyone created or used such a framework or library.
...
Is there any way to get the content of a UIWebView and convert it to a PDF or PNG file? I'd like to get similar output to that available on the Mac by selecting the PDF button when printing from Safari, for example. I'm assuming this isn't possible/built in yet, but hopefully I'll be surprised and find a way to get the content from a web...
Hi,
I'm trying to use a tableview without using a nib and without using a UITableViewController.
I have added a UITableView instance to a UIViewController Like So
mytable = [[UITableView alloc] initWithFrame:CGRectMake(22, 207, 270, 233)];
[mytable setDelegate:self];
[self.view mytable];
Also I have added the following table view me...
Hi!
I need some advice about how should I start coding something.
So here is the context:
I've just finished building a CMS that manage a SQLite database. My application will be picking this database and use its content as the application's content. So far it's pretty simple.
The application will have a navigation that will browse thr...
I use images from resources like that:
UIImage *image = [ UIImage imageNamed:@"example.jpg" ];
UIImageView *imageView = [ [UIImageView alloc] initWithImage:image ];
When I test it on semulator it's works. But on Iphone no. Also image with size about 10Kb loaded, with size about 100Kb no. Whats wrong?
...
I am a java programer, I found that the Java is very gd at doing string. If I want to do this objective c, how can I do in objective c:
System.out.println("This is a "+123+" test");
...
Are there any generally-accepted coding standards (naming, casting etc) that apply specifically to iPhone/Cocoa/Objective-C? I know Microsoft has published similar standards as they relate to .Net and C# but haven't run across anything related to the iPhone world.
...
I am trying to learn how NSCoding works, but seem to have come accross an issue when I try and unachive a previously archived object, this is what I am doing ...
// CREATE EARTH & ADD MOON
Planet *newPlanet_002 = [[Planet alloc] init];
[newPlanet_002 setName:@"Earth"];
[newPlanet_002 setType:@"Terrestrial Planet"];
[newPlanet_002 setMas...
NSFilemanager is returning true for the following, when there should not be any such file there yet. What is happening?
if([myManager fileExistsAtPath:[[self documentsDirectory] stringByAppendingPathComponent:@"Music/songlist.txt"]]){
NSLog(@"file is there");
}
...
How do I set the sample rate of an audio recording within Objective C?
...
Hi,
I've read somewhere that Objective-C doesn't have class level attributes, but that the same can be achieved by declaring something like this (before the class interface):
static NSInteger initCount;
I'm initializing the variable to zero with the initialize method:
// interface
+ (void) initialize;
// implementation
+ (void) ini...
EDIT_002: Further rewrite: if I save using the method below how would the method to load it back in look? (moons is an NSMutableArray of NSNumbers)
// ------------------------------------------------------------------- **
// METHOD_002
// ------------------------------------------------------------------- **
-(void)saveMoons:(NSString ...
for example the UIPickerView, in the tutorial that i am learning i had to include the datasource and delegate protocols in my project for the pickerview to work. how would i know on other objects?
...
Hi, I have an NSArray of NSDictionary objects which I would like to be able to return a new array of NSDictionaries from, where every NSDictionary has "Area == North" (for example).
The closest example I have found so far is http://stackoverflow.com/questions/958622/using-nspredicate-to-filter-an-nsarray-based-on-nsdictionary-keys but ...
I am trying to display a modal view controller as a UIPresentationFormSheet. The view appears, but I can't seem to resize it. My XIB has the proper height & width, but it seems to get overridden when I call it like this:
composeTweetController = [[ComposeTweet alloc] initWithNibName:@"ComposeTweet" bundle:nil];
composeTweetController.mo...
Here's an interesting problem I've come across:
I have a program that allows rotation of the device with resizing UITextFields, but look at what happens when it is rotated:
Normal:
Rotated:
So you see my problem, the text slides over to the side.
Now how would I make the text re-center itself when the device is rotated? This would ...
I have an iPhone application that is reading string data over an AsyncSocket. The weird part is that the msg received will not print to NSLog (it shows up in the console as just a blank). But if I pass the same msg to UIAlertView it shows just fine. Any ideas on what is going on, and how I can get this msg into an NSString that I can ...
Hello, Guys.
I have a UITableView in that some cells are marked with UITableViewCellAccessoryCheckmark at the initialization of the view.
When the user selects another row, I have to check if the maximum number of selected rows was achieved before. To do that, I used the code bellow:
- (NSInteger)tableView:(UITableView *)tableView num...
memberA is defined in the header of ClassA.
memberB is defined in the header of ClassB.
ClassB is a subclass of ClassA
Inside an instance of ClassB, setting memberA via simple assignment:
memberA = 0.05
...also changes memberB, but to a crazy number -- 1028443341. Additionally, assigning 0.05 to memberA results in memberA showing u...
Hi, would it be possible to bind a Java application to a Cocoa graphical interface?
I'm working in Eclipse right now, on my mac, and am wondering if Interface Builder could be used to construct a new interface so that I don't have to look at Swing all day.
Any ideas/suggestions? Thanks!
...