Learning Core Data on the iPhone... There seems to be few examples on Core Data tables with sections. The CoreDataBooks example uses sections, but they're generated from full strings within the model. I want to organize the Core Data table into sections by the first letter of a last name, ala the Address Book.
... I could go in and cr...
I'm developing an iPhone app and doing ad-hoc distribution for beta testing. My users are sending me crash logs that say this:
Identifier: MyAppName
Version: ??? (???)
Code Type: ARM (Native)
I can't understand how to replace those question marks with a real version number. I've configured my Info.plist to include...
- (void)viewDidUnload {
self.GPSArray = nil;
self.accelerometerArray = nil;
self.headingArray = nil;
self.managedObjectContext = nil;
self.locationManager = nil;
self.pointLabel = nil;
self.accelerometerLabel= nil;
self.headingLabel= nil;
self.startStop = nil;
self.lastAccelerometerReading = nil;
self.lastGPSReading...
I want to add a little flair to my application and while I have been somewhat successful, I haven't figured out a way to truly do what I want to do. I would try to subclass UITabViewController, but I don't think I would even know where to start or if that is the right approach.
Basically, what I want to do is have custom images for eac...
My app has a view with three UIImageViews. There are about 150 images as resource files, each a .jpg of about 24k. The app will show all of the images, but only three at a time.
But every time I click the button to load three more images into the UIImageViews, the "Overall Bytes" column in Instruments increases by about 700K, until I ...
I'd like to create a UIImage object from the current graphics context. More specifically, my use case is a view that the user can draw lines on. They may draw incrementally. After they are done, I'd like to create a UIImage to represent their drawing.
Here is what drawRect: looks like for me now:
- (void)drawRect:(CGRect)rect
{
CGCo...
Hello Everyone, I had to make use of PUSH TEchnology in my IPhone app. I am very new to this. Can any one suggest me how to start up the things. I would be very thankful if i can get some sample codes for reference. Thanks in advance...
...
I'm trying to run through the Hello World tutorial for the iPhone and i get this error:
Error: expected ';' before 'interface'
I have checked and my files are identical (except for whitespace) to the tutorials, and i can't figure out why i'm having this problem. I can provide code if necessary.
HelloWorldAppDelegate.h:
//
// HelloWorl...
I've included:
#import "QuartzCore/QuartzCore.h"
but when I try to build, I get the error mentioned in the title. Is there something else I need to do to tell XCode to include the framework?
The code where I use it is:
CALayer *layer = paperView.layer;
CATransform3D rotation = CATransform3DMakeRotation(1, 0, 0, 1);
...
Through Interface Builder I have the ability to change the Identifier of a UIBarButtonItem to something like "Add" (or "Undo", "Redo" etc...). This gives my button a nice "+" image.
How can I set this programatically? The UIBarButtonItem does not accept a "setIdentifier" message.
...
SHORT INTRO:
I'm having trouble with a 3D cube on a plane. The plane is a grid of squares. The ID number of the square that the cube currently occupies on is stored in a storage-variable. This is so that I can tell whether or not adjacent squares are free for the cube to move onto. When I move the cube, the storage-variable is updated to...
How would I say that if a UITextField has @"-" in it, do something.
Right now my code is like this. It doesn't seem to work:
if (MyUITextField.text == @"-") {
NSRange range = {0,1};
[a deleteCharactersInRange:range];
MyUITextField.text = MyUILabel.text;
}
I know that I am doing something very wrong with the code. Please he...
I am trying to implement a hello world application for the iPhone and i've worked through some. However i can't figure out how to get the keyboard to go away. I've seen this and no it doesn't help (i have resignFirstResponder in my code). I have connected the relevant textfield to the file's owner as a delegate. Here is the code that det...
There is a sample code of apple named "reachability" which tells us the network status of the device, wifi or edge/gprs, but I couldn't see any documentation or sample code regarding gathering if the device is on 3g or not while accessing to internet. I also googled, but no hope. Is it possible to do that, if so how?
...
In my hello world application, i have a button and a text field set up. You enter your name in the text field then press the button, then you're supposed to see "Hello, [name]!". However all i get is "Hello, World!" (the default for when there's no string in the text box), even when i input a name. As requested, here's the file:
//
// ...
I have two UIViewController classes in my project... Each Viewcontroller has uilabel...
When i click my firstviewcontroller button, i send data to secondviewcontroller and display that data into secondviewcontroller label....But nothing is displayed on the second label.
Can anyone help me?
Thanks in advance.....
...
I'm looking to commission an icon for an iphone app, and would like to provide the designers with the technical requirements. Also, as this may also be used as a logo for the website I'd like to be have a format that I can reuse and scale myself.
What technical requirements should I give to the designer and does apple have a publically ...
what is the proper way to do If statement with two variable in Xcode for Iphone
currently I have
if (minute >0) && (second == 0) {
minute = minute - 1;
second = 59;
}
...
The following code:
[[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:mapURL]]
returns an instance of NSConcreteData as opposed to NSData (which I expected!). What does NSConcreteData represent, exactly, and why is it being returned instead of an instance of NSData? Further, where is this class defined? XCode is complaining th...
After alot of hacking i have managed to compile the boost-libraries for iphone, both device and simulator, but when i try to use them i get an error in the xcode debugger saying:
dyld: Library not loaded: libboost_graph.so.1.40.0
which im guessing is a dynamic library loader which isn't allowed on the iphone. i'm linking the app with -...