Hi, everyone
i've been trying to figure this out and i have absolutely no clue why this happens.
Here is what i'm trying to do:
I am building a little gps application and i want things like coordinates, altitude, speed, etc. displayed on my main view. I also want to show the current horizontal accuracy.
I do this by using the "locatio...
In Objective-C properties you can set alternative names fpr the accessors.
@property(setter=nameWrite:,getter=nameRead,copy) NSString *name;
I am thinking real hard but I don't know any situation I would ever do that. It is not KVC standard and I see no advantage at all. What is the use of it?
...
Anyone know of a wrapper for the AddressBook framework that makes it a bit friendlier to use?
...
I am looking to get the location of a touch, preferably corresponding to the pixels of the screen. I'm new to objective-c and cocoa and haven't been able to find anything on the web about this so i'm not sure if there is even a way to do it. any ideas or direction of where to look would be really helpful. thanks.
...
I know it is easy to create a NIB file easily with interface builder but I was wondering if there is a way to archive an existing UIView into a NIB for use later.
It looks like a NIB file is just a special type of bundle where each of the UIView objects are archived using NSCoding but I cannot seem to find any more info beyond that. All...
When I add a UIImageView subclass (fullscreen) behind a couple of UIButton subclass instances, those buttons stop receiving the touches and don't function anymore. Nothing I have tried has worked to restore their connectivity to user touches.
I have tried:
a) Using a UIImageView subclass for the front view (that receives the touches) an...
All the cells in my table are blank. I noticed that tableView:cellForRowAtIndexPath is not being called, which I think is causing this to happen. What calls this method?
...
Hello there,
I am quite new here so I do not know many things. And the first thing I do not know is how to Terminate any running process programmatically, e.g. taping on the button; e.g. Mail or Safari.
If it is possible, do not show me the whole code, just the proper way I have to try.
Thanks.
...
Hi everyone,
I am new to iPhone OS App development. Can somebody explain whats the difference between
IBOutlet UIButton *myButton;
@property (nonatomic, retain) IBOutlet UIButton *myButton;
As far i understand the first line was used earlier and now we can use the 2nd line. Theres absolutely no need to write both of them. Any ide...
The following example:
http://www.raddonline.com/blogs/geek-journal/iphone-sdk-uitabbarcontroller-how-to-save-user-customized-tab-order/
Doesn't work in iOS4.
I would like to be able to save the order of my tabs when the application is shut down.
...
I have data being refreshed in a modalViewController and when that data gets refreshed, the parent controller needs to refresh its data as well. I tried doing a [tableView reloadData]; but it didn't work properly since the actual array values aren't being refreshed. Is there a way for me to reload a controller without the user seeing any...
I'm going nuts trying to see what I'm doing wrong with this...
I have an iPad app which runs only in landscape mode.
I have a UITabBarController which holds a webview:
[tabBarController setViewControllers:
[NSArray arrayWithObjects:browserController,
nil] animated:YES];
I have a UIButton that I want to be able to us...
Working with some CoreText code on iOS and I am confused as to why this is an overrelease of the CTFrame. I have confirmed it is an over-release but I am baffled because it is created with a create method.
for (NSValue *value in [self frameArray]) {
CGRect column = [value CGRectValue];
CGMutablePathRef path = CGPathCreateMutable();...
I have a TableViewController and would like to have a static picture as a background, which doesn't scroll along.
The way that everyone recommends using
[UIColor colorWithPatternImage:[UIImage imageNamed:@"backgroundPattern.png"]]
doesn't work as it will
1.) move along and
2.) put the background pattern in every cell
I know ho...
Hi all,
I am getting errors when trying to add items to a NSMutableArray which is encapsulated within an object.
Code follows:
#import <Foundation/Foundation.h>
@interface TestObject : NSObject {
NSMutableArray *myArray;
}
@property (nonatomic, retain) NSMutableArray *myArray;
@end
#import "TestObject.h"
@implementation Te...
so I have implemented a 1-finger long-press gesture recognizer, but the recognizer always seems to be missing the UIGestureRecognizerStateBegan state...
If I long press w/o moving finger and lift, I get the StateEnded debug message.
If I long press and move finger a bit then lift, I get the StateChanged and StateEnded debug messages.
But...
I'm trying to call the labelWithString function and I'm getting the following run-time errors:
Error: CGContextSetGrayFillColor: invalid context 0x0
Error: CGContextTranslateCTM: invalid context 0x0
Error: CGContextScaleCTM: invalid context 0x0
This is the line of code that I tracked it down to:
self.label = [CCLabel labelWithString...
Using Iphone and Objective C
Im trying to find what plane has been clicked/touched in my opengl view. Typically i would use glPushName/ flPopName but this function doesn't seem to be implemented in the sdk or defined in . Does anyone know where to get there useful functions or another way to get the object that was clicked?
...
I am new to Core Data and trying to think of the simplest and / or most performant way to implement a tags feature for items in Core Data. I am still wrapping my head around the fundamental differences between core data and the sql server I am used to.
Has anyone done this? Or have any suggestions of a solid implementation for this? ...
I have a view called PatternsViewController and a subview named SolutionsViewController. I want to pass a variable in PatternsViewController named iteration to my SolutionsViewController, right before I present it with
solutions = [[SolutionsViewController alloc] init];
solutions.modalTransitionStyle = UIModalTransitionStyleCrossDissolv...