objective-c-2.0 Questions
3
Solved
I am using Buildbox for my game. I implemented custom rewarded ads. The problem is that game music continues when rewarded video is open. I want to mute and unmute after video is watched.
I know J...
Bedel asked 17/12, 2019 at 18:59
7
Basically what I am trying to figure out to do is, say I have one View Controller, called V1, that has a regular view inside it and a button. Now, when you tap that button, I want that button to cr...
Scharff asked 14/9, 2011 at 4:50
3
I need access address of property but have problem. example code is
@interface Rectangle : NSObject
{
SDL_Rect wall;
SDL_Rect ground;
}
@property SDL_Rect wall;
@property SDL_Rect ground;
@end
...
Hunsinger asked 14/12, 2014 at 10:56
11
Solved
I use Xcode 4.5PR and iOS 6beta 2.
I didn't change any codes, my application throw an exception mentioned in the Title.
I used Debug Window which function caused this exception, but it showing
0...
Hereat asked 2/7, 2012 at 6:57
4
Solved
In Ruby, there's Modules and you can extend a class by "mixing-in" the module.
module MyModule
def printone
print "one"
end
end
class MyClass
include MyModule
end
theOne = MyClass.new
theOn...
Fates asked 21/3, 2010 at 7:21
2
Solved
The compiler seems to have no problem with the two following declarations:
NSObject * __weak weakThing;
__weak NSObject *anotherWeakThing;
Is there a difference between the two? Is the behavior ...
Alan asked 18/1, 2012 at 17:29
5
At the moment I'm learning objective c 2.0, and soon I plan on learning assembly language, so I can write an operating system. I know it won't be easy, and I know it will take months, perhaps...
Adjectival asked 22/3, 2011 at 0:40
3
Solved
I'm still learning iOS development and have been working with various tutorials and books. Some pre-ARC, some with ARC.
In some cases, we're taught to release all of the properties and subviews of...
Glabrescent asked 1/6, 2012 at 15:48
4
Solved
I haven't been able to figure it out, and there are no websites which explain it clearly enough... what exactly are the purposes of @property and @synthesize?
Thanks in advance!
Olatha asked 3/7, 2010 at 0:33
1
Solved
I found an interesting post describing how, in Objective-C 2.0, instance variables can be declared in the implementation file. Consider this example:
@interface MyClass {}
@end
@implementation M...
Sublimation asked 17/12, 2011 at 22:38
1
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Hello, World!");
...
Camus asked 8/3, 2011 at 18:44
2
Solved
I am new to Objective-C (coming from Java) and I think I am getting a pretty good understanding of memory management.
But when my app loads, I get a extremely small memory leak, that only occurs wh...
Kisung asked 18/2, 2011 at 21:36
1
Solved
In my quest to update a Core Data model within my iOS project, I'm querying a server for JSON objects that correspond - to some extent - with the managed entities of my model. The end result I'm st...
Leaseholder asked 9/2, 2011 at 21:38
1
Solved
I've got another problem in the same code...
I'm getting this error:
initialization method -initWithCharactersNoCopy:length:freeWhenDone: cannot be sent to an abstract object of class NSString_R...
Highness asked 2/4, 2010 at 21:26
1
© 2022 - 2024 — McMap. All rights reserved.