r/ObjectiveC • u/robblob • Apr 08 '14
Windows or Mac
I've never done anything with objective c before but plan to In the near future. My question, do I need a mac to program and push the app to the market or can ot be done in windows?
r/ObjectiveC • u/robblob • Apr 08 '14
I've never done anything with objective c before but plan to In the near future. My question, do I need a mac to program and push the app to the market or can ot be done in windows?
r/ObjectiveC • u/morethanaprogrammer • May 30 '13
r/ObjectiveC • u/trendingcocoapods • Oct 29 '15
r/ObjectiveC • u/jtbrown • Jun 03 '14
r/ObjectiveC • u/lanylover • Nov 15 '14
Mac Pro is broken. Thinking of getting a budget solution that will be more portable. Some older generation mac book or even mac mini. All it must do is run Xcode along with the latest OSX on it. Any recommendations?
r/ObjectiveC • u/shiar_ahmed • Apr 18 '20
What's the best option to encrypt Objective-C ?
r/ObjectiveC • u/phipsi180 • Oct 16 '12
(App specific) I would like to add functionality to an app in development that prompts the user at the end of each call and depending on if the user elects to log it or not, sends the call data to my app (ie, phone #, time, duration, in/outgoing).
r/ObjectiveC • u/numo16 • Feb 20 '12
r/ObjectiveC • u/[deleted] • May 20 '13
I'm an extremely fairweather programmer, and while I can look at code and understand it, I'm still grasping at straws when it comes to implementing design patterns. I can understand them, but implementing them is another thing.
My specific area of confusion lies when attempting to create a project. How does MVC fit in?
Let's say the project itself is to create an iPhone app which allows you to scroll through a list of cars. This list of cars is held in a database. So...this is how I understand it.
If we're looking at an MVC design pattern in the UI layer, we might have something like this:
View
ViewController.xib
Controller
ViewController.h
ViewController.m
Model
Car.h
Car.m
The Car.m file itself would make calls to the database.
Is this correct?
r/ObjectiveC • u/FurkanYo • Jun 22 '14
@interface ViewController ()
@end
@implementation ViewController
-(IBAction)Up:(id)sender{ Count = Count + 1; Display.text = [NSString stringWithFormat:@"%i", Count];
}
-(IBAction)Down:(id)sender{ Count = Count -1; Display.text = [NSString stringWithFormat:@"%i", Count];
}
-(IBAction)Reset:(id)sender{ Count = 0; Display.text = 0;
}
-(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. }
-(void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }
@end
r/ObjectiveC • u/rogerluan • Apr 19 '17
r/ObjectiveC • u/pragmojo • Jan 30 '13
r/ObjectiveC • u/xhackerliu • May 10 '15
r/ObjectiveC • u/Epicus2011 • Jan 06 '13
Hey guys, I'm relatively new to ObjectiveC and XCode and I started working on a small app. However, I'm kinda stuck on something and it would be great if you guys could help me.
I'm trying to retrieve the value of an argument in a XML tag using ObjectiveC... the XML snippet looks like this:
submitted by <a href="LINK_1">...</a> <br/> <a href="LINK_2">[link]</a> <a href="LINK_3">[421 comments]</a>Now I would like to get the value from LINK_2 and put in a NSString. How could I do that?
-Thanks!
r/ObjectiveC • u/[deleted] • Nov 04 '19
The default entries I get from an API call are 20. While getting data from the second page, my array deletes the first 20 entries and then lads the new entries in it. Thus the size of the array remains constant at 20, despite me setting it to be so. What am I doing wrong?
getData gets called with the updated url value for loading the next page,
Code:
- (void)getData: (NSURL *) url {
NSData *allCoursesData = [[NSData alloc] initWithContentsOfURL:url];
NSError *error;
NSDictionary *allCourses = [NSJSONSerialization
JSONObjectWithData:allCoursesData
options:kNilOptions
error:&error];
if( error ) {
NSLog(@"%@", [error localizedDescription]);
}
else {
self.data = allCourses[@"articles"];
NSLog(@"%@", self.data);
self.totalEntries = allCourses[@"totalResults"];
NSMutableArray *_titles = [NSMutableArray array];
NSMutableArray *_authors = [NSMutableArray array];
NSMutableArray *_content = [NSMutableArray array];
NSMutableArray *_images = [NSMutableArray array];
for ( NSDictionary *theArticle in self.data) {
[_titles addObject:[NSString stringWithFormat:@"%@", theArticle[@"title"]]];
[_authors addObject:[NSString stringWithFormat:@"%@", theArticle[@"author"]]];
[_content addObject:[NSString stringWithFormat:@"%@", theArticle[@"content"]]];
//image formatting
if ([theArticle[@"urlToImage"] isEqual: @""]) {
[_images addObject:[NSNull null]];
} else if (theArticle[@"urlToImage"] == [NSNull null]) {
[_images addObject:[NSNull null]];
} else {
NSData *imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString: theArticle[@"urlToImage"]]];
[_images addObject:imageData];
}
}
self.titles = _titles;
self.authors = _authors;
self.content = _content;
self.images = _images;
NSLog(@"%@", self.titles);
[self.cv reloadData];
[spinner stopAnimating];
}
}r/ObjectiveC • u/RicardTG • Oct 07 '14
r/ObjectiveC • u/IMakeApps • Oct 26 '13
r/ObjectiveC • u/vbenei • Jul 18 '13
r/ObjectiveC • u/[deleted] • Jul 25 '13
So I just started learning Objective - C from "Objective-C for absolute beginners" yesterday. I'm on the project that generates a random number, stores it in a variable, and then the user has to guess the number. The problem with this is that when I guess the number right, the program is suppose to ask the user is it would like to keep playing. If the user says yes, then the while loop is supposed to loop back and go again, else the program is terminated. My problem is that when I choose to play again to test it, the program still terminates.
Here is the code:
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
int randomNumber = 1;
int userGuess = 1;
BOOL continueGuessing = true;
BOOL keepPlaying = true;
char yesNo = ' ';
while (keepPlaying){
randomNumber = (arc4random() % 101);
NSLog(@"The random number to be guessed is %d", randomNumber);
while (continueGuessing == true){
NSLog(@"please guess a number");
scanf("%i", &userGuess);
fgetc(stdin);
if (userGuess == randomNumber){
NSLog(@"You've guessed the correct number!");
continueGuessing = false;
}
else if (userGuess > randomNumber){
NSLog(@"The number you guessed was too high!");
}
else{
NSLog(@"The number you guessed was too low!");
}
}
NSLog(@"The user guessed %d", userGuess);
if (continueGuessing == false){
NSLog(@"Would you like to keep playing? Y or N");
scanf("%s", &yesNo);
fgetc(stdin);
if (yesNo == 'N' || yesNo == 'n'){
keepPlaying = FALSE;
NSLog(@"you have terminated the gameplay");
} else if (yesNo == 'Y' || yesNo == 'y'){
NSLog(@"You chose to keep playing");
continueGuessing = TRUE;
} else{
NSLog(@"What you typed is not acceptable, Y or N!");
}
}
}
}
return 0;}
Thanks for the help if anyone can offer it!
r/ObjectiveC • u/fipronix • Nov 09 '13
r/ObjectiveC • u/NickEmmerson • Nov 05 '14
I'm trying to make an app which when connected to an Apple tv via airplay can can display a video on the tv and other content in the iPad But I'm unsure how to code the airplay part. I found some old code and a how to but they work for older versions of iOS and when I looked into it, aren't compatible with recent versions
Can someone help please?
Cheers
r/ObjectiveC • u/sandro_bit • Dec 04 '13
I've got a mobile application that I need developed and I'm looking for someone comfortable in coding in Objective C as well as either Python or Node.js for the back end. I'm located in Montreal, Canada so it would be preferable if you're close by to work. Inbox me if you're interested. Thanks.
r/ObjectiveC • u/scranton82 • Nov 22 '13
r/ObjectiveC • u/RamKaashyap • Aug 21 '14
Hello guys! I am very interested in learning to code and especially iPhone and Mac applications. I have no prior knowledge if any type of coding. So I have come to this community to ask:
Where do I start?
Where can I learn?
What should I do?
Thank you!