Hi,
sthis is very annoying, since now my values are stored as if they contain somethin by default (like in c). All my OO stuff are now broken since my delegate are always somethin. I was wonderin why XCode do this to me, since by default XCode always set the variable value to 0 or nil.
So if i do
NSArray* anArray;
and then
NSLog(%@"...
Hey,
in my app I want to save the text that was typed in in a UITextView. How can I do this?
Thanks for you help.
Leon
...
When I open my xib file in Interface Builder and click on File's Owner in the Document window, the Connections Inspector is showing far more actions below Received Actions than I have defined in the class as specified by the File's Owner Class Identity.
I have only two IBAction items defined in the class, and both of these actions are s...
Given that you have a method
-(void)aSelector:(id)anyArgument;
And have set up a UIButton programmatically
UIButton *myButton = [[UIButton alloc] init]
Alright, I get the idea that when you create a UIButton, you have to use the method
[myButton addTarget:nil action@selector(aSelector:) for ControlEvents:UIControlEventTouchUpIn...
Does anyone know how to add an existing xcdatamodeld folder to an XCode project? xcdatamodeld is actually a folder, even though the OS recognizes it as a file, much like a [namehere].app folder. When I try to add the xcdatamodeld into XCode, all I get is a folder group with the name of the xcdatamodeld folder; that looks as it should (it...
We've created an iPhone application and provisioned the application for deployment. In XCode we've used the build & archive tool to create an IPA file that can be used for installation. When new devices are added to the profile we would like to re-provision the IPA without recompiling or re-exporting the app from XCode.
Is there any w...
when you create a plist and choose number for the type for one of the entries, what type of object is returned when you call on that information later?
...
Hello all.In my app i need to add uiview dynamically whenever user taps on button in my main uiviewcontroller.How can i do this
...
I was wondering if anyone knows of any subclasses for the MKAnnotationView class. On apples documentation they say one example is the MKPinAnnotationView so I was wondering if there were other pre-created subclasses like the one used to track the devices current location. If anyone has tips for creating my own subclass of the MKAnnotatio...
Hi
I have installed Ogre 1.7 , Copied iphone dependencies and the project is running in simulator with around 25 sample projects. I need to build a template with only one sample example. Can you please guide me to do so...
...
I am about to upload my App to the Apple store but i have no idea about info.plist any idea about it will be great. or let it without any changes.
...
Hello all,
i used the code below to handel the touches in my app and i used for loop in touchesBegan to handel 2 touches in the same time but the problem is if the user make a drag with 2 fingers just one work can i make the 2 works properly ?
code:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:...
Hello, i have the following code compiled with GCC 4.2 / XCode.
template <typename T>
class irrProcessBufferAllocator
{
public:
T* allocate(size_t cnt)
{
return allocProcessBufferOfType<T>(cnt);
}
void deallocate(T* ptr)
{
if (ptr)
{
releaseProcessBuffer(ptr);
}
}
...
I've found this excellent question / answer on how localize a string with the users current currency settings... localize-currency-for-iphone
This is the code used...
NSDecimalNumber *someAmount = [NSDecimalNumber decimalNumberWithString:@"5.00"];
NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
[currencyFormatt...
I'm seeing in the console:
"Unhandled error (no delegate or
delegate does not implement
didFailToReceiveAdWithError:):"
Although didFailToReceiveAdWithError is being invoked (I can see that with check points and in the console log)
Does someone has any reasonable explanation? It's like it's working and not working all in the ...
I've used fabs before which makes passed values positive, but I need a function which will make number negative ??
...
In an iPad app im using a thirdParty cpp file that acts as a controller for some UI functionality; its wired up with IB and a @class definition is all i need.
However now I'm trying to set a delegate on the cpp file and therefore have to include it in the implementation of my viewController.
including the cpp header in my implementatio...
Hi all,
seems like a quite easy problem but I don't get it.
It have two UIButtons, one is titled 'next' the other is titled 'previous'. Both are linked to the same method. All I wanna do is change the variable 'helpStatus'depending on which button is pressed:
if([sender currentTitle] == @"next"){
helpStatus++;
}
if...
Hi,
Is there any way to tell the geo lat,long of an image taken in the camera on iphone, using the iphone sdk?
Is there any way to get the timestamp?
...
Is it possible to reduce light(brightness) of screen from code ?
...