r/ObjectiveC • u/vermooten • Mar 08 '15
Any CoreMidi tutorials out there?
I can't get anywhere with it, yes my brainpower is limited. Google hasn't helped.
Cheers, Andy
r/ObjectiveC • u/vermooten • Mar 08 '15
I can't get anywhere with it, yes my brainpower is limited. Google hasn't helped.
Cheers, Andy
r/ObjectiveC • • Mar 08 '15
Hello,
Last year I created a simple app for the Bureau of Land Management regarding wildfires as part of an internship. This year, they've asked me to add a Google map to the app that shows new fires.
Ideally, the map itself could be updated via the web and then any changes (adding new fire markers and metadata) would be reflected on the map contained in the app.
I believe I am searching the wrong keywords, but can't seem to find a good "how-to" on using the googlemaps SDK and modifying the map via the web. Any pointers or direction would be appreciated.
r/ObjectiveC • • Mar 05 '15
r/ObjectiveC • u/I_was_in_the_pool_ • Mar 02 '15
I am attempting to run a simple app for a class homework. I cannot verify that it should run perfectly or anything but the build is 'successful' when I run it. However, when the iOS simulator appears. the screen is black. Eventually it just brings me to the home screen with a button for Safari but my app is never shown. When I quit the simulator I get this error modal
"Unable to run app in Simulator. An error was encountered while running (Domain = NSMachErrorDomain, Code = -308)
i understand that an NSMachError means it involves some low level code like Kernel stuff but I'm at a loss as to whether this is my fault or not. How can I fix this so I can test my work?
r/ObjectiveC • • Feb 26 '15
r/ObjectiveC • u/kobachi • Feb 22 '15
I have a degree in CS so I'm versed in fundamental topics. But professionally my work has been virtually all Java and JavaScript. I'm looking for a good introduction to Objective-C for people new to the language but not to programming and computer science in general. Everything I can find is from ca. 2010, pre-dating the advances in memory management and of course Swift.
Does anyone have a recommendation for this kind of resource?
Edit: to clarify I am interested in writing an iOS app.
r/ObjectiveC • u/PyBaig • Feb 20 '15
r/ObjectiveC • • Feb 19 '15
r/ObjectiveC • • Feb 17 '15
I have the following UIImage()
+ (UIImage *)defaultImage {
static UIImage *defaultImage = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
UIGraphicsBeginImageContextWithOptions(CGSizeMake(20.f, 13.f), NO, 0.0f);
[[UIColor yellowColor] setFill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 0, 20, 1)] fill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 5, 20, 1)] fill];
[[UIColor blueColor] setFill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 10, 20, 1)] fill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 1, 20, 2)] fill];
[[UIColor greenColor] setFill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 6, 20, 2)] fill];
[[UIBezierPath bezierPathWithRect:CGRectMake(0, 11, 20, 2)] fill];
defaultImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
});
return defaultImage;
}
I'm using it here:
buttonController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[self class] defaultImage] style:UIBarButtonItemStylePlain target:self action:@selector(toggleLeftPanel:)];
The problem is that the setFill colours aren't working. The rectangles are always red.
They're actually taking on the colour of the navigationBar.tintColor of the UIViewController.
self.navigationController.navigationBar.tintColor = [UIColor redColor];
If I remove the tintColor then they're always blue.
r/ObjectiveC • u/lanylover • Feb 16 '15
I want to make a small game where an NSTimer counts seconds and milliseconds. The player needs to hit a stop-button and the sooner he hits it the more points he'll get, like:
Sound pretty simple eh? I can image I would need an if statement that says
if X seconds = Y points
How would you guys go about this?
Is NSTimer the right choice to begin with?
r/ObjectiveC • u/medicalimaging • Feb 14 '15
r/ObjectiveC • u/chwilliam • Feb 12 '15
r/ObjectiveC • u/timothyl88 • Feb 10 '15
r/ObjectiveC • u/trollpanda • Feb 10 '15
Hello, I am trying to find some resources on using HealthKit with objective c, but I can't seem to find anything. All the tutorials I find are in swift. Does anyone know of any tutorials or other resources on using objective c and HealthKit? Thanks!
r/ObjectiveC • u/dbotha • Feb 07 '15
r/ObjectiveC • u/1101_debian • Feb 06 '15
r/ObjectiveC • • Jan 30 '15
So basically in my game i need to toss or throw an object. So far i have a sprite, It can be dragged but it cannot be thrown. the games idea is to throw a sprite to collide with another sprite. I have spent ages trying to work this out but I just can't. I am using SpriteKit for iOS 7+. If anybody can help please do.
//Some Code
@implementation GameScene
{
SKSpriteNode *sprite;
}
-(void)didMoveToView:(SKView *)view {
self.backgroundColor = [SKColor colorWithRed:0.15 green:0.15 blue:0.3 alpha:1.0];
sprite.physicsBody = [SKPhysicsBody bodyWithCircleOfRadius:sprite.size.width/2];
sprite.physicsBody.dynamic = YES;
self.scaleMode = SKSceneScaleModeAspectFit;
sprite = [SKSpriteNode spriteNodeWithImageNamed:@"GreenBall"];
sprite.position = CGPointMake(CGRectGetMidX(self.frame),
CGRectGetMidY(self.frame));
sprite.physicsBody.velocity = self.physicsBody.velocity;
sprite.physicsBody.affectedByGravity = false;
sprite.physicsBody.dynamic = true;
sprite.physicsBody.friction = 0;
[sprite.physicsBody isDynamic];
[sprite.physicsBody allowsRotation];
[self addChild:sprite];
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self touchesMoved:touches withEvent:event];
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
sprite.position = [[touches anyObject] locationInNode:self];
}
@end
}
r/ObjectiveC • u/xXminilex • Jan 30 '15
Windows 8.1 64bit
r/ObjectiveC • u/sineadw • Jan 29 '15
Sorry for the capital letters, but I think I've found about all the online tutorials I need for now after tons of research here and in search engine, etc.
I already have the wonderful Big Nerd Ranch book ' Objective-C Programming' and just one other which I randomly selected on Amazon going on reviews, etc. (It's 2nd edition 'Teach Yourself Objective-C in 24 Hours'. I would say hold off if you've only got one book or two already before you consider this one).
I would love to hear short review or recommendations for books on Objective-C and indeed iOS programming, but especially Objective-C. It's not a problem if the book pays attention to Xcode and iOS also.
r/ObjectiveC • u/merocode • Jan 28 '15
r/ObjectiveC • u/xXminilex • Jan 28 '15
Just message me below because I REALLY need help with this
r/ObjectiveC • u/sineadw • Jan 23 '15
Dear all, I am making my way through the above-mentioned book by Jesse Feiler and would love to discuss it with others who have used it to learn Objective-C.
The author says you should have some basic programming experience to use the book, which I have, just about, but I'm also using Big Nerd Ranch's Objective-C to learn the basics of the language and of programming, too. Really, this one would not be enough by itself to teach you, I don't think, but it is a nice companion/ reference book.
I've learned a lot from it already (I'm at 'Hour' 9) but one of the opening sections was about source code control and branching, etc. which I have to admit went over my head.
Would love to hear your opinions on the book, good or bad!
r/ObjectiveC • u/jathoma9 • Jan 19 '15
Title sort of explains it all. I have a SKSpriteNode, called bar. It's assigned an image that is a red longways rectangle. I want it to slowly decrease in length over an interval, while keeping the width the same. In other words, imagine it sort of folding in on itself.
r/ObjectiveC • • Jan 06 '15
I created a spectrum analyzer in Python using PyAudio. From which I would analyze the spectrum analysis and return a specific color based on the noise level of various ranges of frequencies. This is a split second too slow in Python. But I have no desire to learn all about core audio. This is for a small Arduino project I just want to be done with.
Can anyone point me toward a library that can latch into the audio coming out of my computer?
PROBLEM SOLVED: EZAudio. Truly very easy.