166 Topics

Member Avatar for
Member Avatar for sinatra87

I'm having a little difficulty, trying to transition from c++ to objective-c. I tried to write a fairly simple Fibbonacci sequence computer, which I usually write to familiarize myself with new languages. Unfortunately, it doesn't work. I keep getting errors related to either comparison between an int and a pointer, …

Member Avatar for sinatra87
0
394
Member Avatar for android45

I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS.

Member Avatar for ChrisPadgham
0
74
Member Avatar for TheMorphinator

Hello all, I'm new to programming in Objective-C and have some C++ under my belt. As one of my first programs, I'm trying to make a fairly simple app that can record the user's heart rate. I made a class to store all of this information in (called HeartRate), from …

Member Avatar for ChrisPadgham
0
227
Member Avatar for simagen

I have my app running with 2 annotations for now. They are hardcoded in with latitude and longitude. How do I make it so that I let the user add annotations by dropping a pin where they wish and for my app to recognize this and save where they drop …

0
105
Member Avatar for Dane2259

I have been trying to follow along with the tutorial on Apple's developer website: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html but cannot figure out why my project will not run. I have one warning: Incomplete implementation in the BirdSightingDataController.m file: #import "BirdSightingDataController.h" #import "BirdSighting.h" @interface BirdSightingDataController () - (void)initializeDefaultDataList; @end @implementation BirdSightingDataController @synthesize masterBirdSightingList = …

Member Avatar for Dane2259
0
145
Member Avatar for hericles

I've been at this for hours - I am trying to display a barcode font in a label. Sounds simple but apparently isn't. I've added the font ttf to the project and added it to the UIAppFont array in the project p-list but the text appears normally (defaults to the …

Member Avatar for hericles
0
159
Member Avatar for Acidburn

Hi guys, I'm playing with storyboards and have managed to construct the fallowing based off a tutorial.... My delegate header file #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, retain) IBOutlet UITextView *label; -(IBAction) my_btn:(id) sender; @end implementation file -(IBAction) my_btn:(id) sender { self.label.text = @"updated!"; } Now with the …

Member Avatar for ChrisPadgham
0
121
Member Avatar for nameisskrillex

This is a question about Mac OSX Objective C (Cocoa) Hello I currently have a webview inside a panel which I have set as a sheet, the website inside the web view in the panel can go to other pages of the site, unfortunately one of these pages has a …

Member Avatar for Perigee
0
212
Member Avatar for Acidburn

Hi guys, it's been a frustrating day so far, I've taken the week off to get to grips with Xcode and produce an application for the iPhone. Wishing I hadn't now! Anyway, I'm slightly stuck in my conquest... I collasped the "Scene" panel when storyboarding and now I need it …

Member Avatar for Acidburn
0
118
Member Avatar for testingcore99

Hello I am getting this error: error: expected '=',',',';', 'asm' or '__attribute__' before '.' token I am not sure what is causing it, it's probably something stupid which I have over looked, here is the problem code. This is a mac app btw DataClass *obj=[DataClass getInstance]; obj.str= @"test";

Member Avatar for testingcore99
0
1K
Member Avatar for SteveMDavis

Hi there! I'm having trouble understanding the following in Stephen Kochan's book "Programming in Objective-C" - 4th Edition. I hope that you can help me understand it. In Chapter 10 on the section on "Initialising Objects", Stephen writes: "You should adhere to the following two strategies when writing initialisers. It …

0
63
Member Avatar for stereomatching

I found a lot of books introduce about objective C but can't find a book which talk about objective C++.Could you introduce me an objective C++ textbook? I learned C++ before but don't know objective C, where should I start if I want to learn objective C++?Looks like it is …

Member Avatar for stereomatching
0
422
Member Avatar for Nfurman

Hello guys, There's some issue with my UIPickerView controller. The data won't pop up in it. The 'Drum' by itself is visible but empty. My code is: - (void)viewDidLoad { [[self navigationController]setToolbarHidden:YES animated:YES]; [self setItemShow:theItem]; self.uiPickerViewData=[[[NSMutableArray alloc]initWithObjects:@"One",@"Two", nil]autorelease]; [super viewDidLoad]; } And method which will work when button is getting …

Member Avatar for scottdurica
0
1K
Member Avatar for digan

Hello everybody, I have an application for the iphone. When I go into a view, it is supposed to play a sound on repeat until I exit the view. This works fine the first time. The second (and subsequent) times the sound is played numerous times overlapping each other (two …

Member Avatar for ChrisPadgham
0
377
Member Avatar for while(!success)

Hey guys, I'm trying to make my first iphone application and have encountered some errors as expected. I am trying to uitlize UIAlertView to check if the setter for a password and email instance has been filled. If they are nil, then the alert should be invoked and display the …

Member Avatar for ChrisPadgham
0
140
Member Avatar for mitchfizz05

Hello all. I love iPod touches. I love iPads. I love iPhones. I love Windows PCs... I **HATE** macs! Is there ANY way to make an app for iOS without a mac? (I don't want to make a web app though, but even if you find a way for that …

Member Avatar for mitchfizz05
0
113
Member Avatar for khan.irshad49

I am going to Develope an iOS Application in which i need to utilize my online Database. How can i fetch online Database and update that with the Database in my Application? At the same time i want to update the online Database through Admin Panel please Guide me a …

0
65
Member Avatar for rue64ja

Hey all… I've been working with Xcode, and an Objective C text book, obviously trying to learn Objective C. When I follow along with the text and type the examples or even when I copy and paste, with out fail there are always several compilation errors. Regardless of how careful I …

Member Avatar for dioioib
0
151
Member Avatar for Legomani
Member Avatar for SpokaneDude

This is my code: [CODE]//++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - (void)viewDidLoad { [super viewDidLoad]; NSString *indexPath = [NSBundle pathForResource:@"iHelp" ofType:@"html" inDirectory:nil]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]]; [/CODE] The app is crashing because 'nil' for directory name is invalid (DUH!). So for an imbedded html file, what should go there?

0
91
Member Avatar for dsmush

Hello I previously created an iPhone app that displayed the top trending topics on Twitter. The user could drill down into the tweets about that topic before selecting an individual tweet that would launch the twitter page for that tweet displayed in an in app webpage. However Twitter has recently …

0
137
Member Avatar for SpokaneDude

I had my iPhone app working, developed with Storyboard. I decided to take all of the methods that belonged in a SQLite method and move them to a new SQLite class (.h and .m). Now I have errors that I can't seem to get rid of. The basic problem is …

Member Avatar for peter_budo
0
374
Member Avatar for SasseMan

Hi! I think the title is quite clear, but is there a way (I'm using Xcode 4) to auto generate the methods defined in a c++ header file to a cpp file? I just want empty methods that are compatible with the definitions in the header. Can't find anything on …

0
85
Member Avatar for Panathinaikos22

Hello, First of all, VC++ use .NET FW? it means is totaly High language... i dont get the point to learn VC++ when i can use C#, both language use .NET FW, so the reason of "speed" doesn't metter. VC++ & C++ are totaly diferent things... well im ok with …

Member Avatar for dioioib
0
171
Member Avatar for DanielPrasath

Can any one explain briefly about Objects,Classes,Methods and Instances in Objective C.Since i'm a beginner to learn Objective C i want to know the basic things...

Member Avatar for dioioib
0
165
Member Avatar for daniel1977

I am wondering if the algorithm is correct that it shows for the insertAt(int, const elemType&) function for an array-based list: template <class elemType> void arrayListType<elemType>::insertAt (int location, const elemType& insertItem) { if (location < 0 || location >= maxSize) cerr << "The position of the item to be inserted …

Member Avatar for ChrisPadgham
0
138
Member Avatar for daryll1

Hi, I'm having a major problem with passing GCC link flags in Xcode. I created a C program that creates and runs a neural network using the FANN library. When I compile this command line I use the command [CODE]gcc main.c -o train_test -l fann[/CODE] to link the fann library …

0
103
Member Avatar for ilaunchpad

The app I'm currently working on is suppose to overlay a square image. The square image should overlay on preview camera screen wherever the user touches the screen. And it should also appear on the image captured by the user. I'm having hard time figuring this out. Guidance would be …

0
141
Member Avatar for rue64ja

Never Mind the title of the post guys and gals… it turns out that writing the post helped me vent my frustration and clear my mind. I found the issue and solved the problem while I was writing the initial post! I'm writing this because I haven't figured out how to …

Member Avatar for rue64ja
0
170
Member Avatar for tammy12w

well i was watching a programing tutorial and when i copy the code i keep getting an error saying type of property 'bg' (UIImageView*) does not match type of ivar 'bg'(UIImage*__strong) i'm programing in xcode 4.2.1 in single view controller my code is: @interface ViewController : UIViewController{ UIImage * bg; …

Member Avatar for hericles
0
130
Member Avatar for ilaunchpad

I'm trying to make a camera app using AVCaptureSession. For now I just want to see if the video input works or not. But it looks like there is no input and I can't seem to understand why. - (void)viewDidLoad { [super viewDidLoad]; session = [[AVCaptureSession alloc] init]; [self addVideoPreviewLayer]; …

0
119
Member Avatar for sarya_w

Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id …

Member Avatar for sarya_w
0
375
Member Avatar for Navlag

Writing a small program that requires me to convert strings to doubles and then back to strings. Right now, the code compiles but the answer is wrong, even though I am using an algorithm that I know is right in C++. Can someone tell me what I'm doing wrong? The …

Member Avatar for Navlag
0
120
Member Avatar for mediachicken

This is actually an Objective-C question. I'm trying to implement a way to loop through pixels and map the colors to "curve" data. I was wondering the easiest way to do this. Is there a prewritten algorithm for curves anywhere? I don't want a graphical curve grid, I just need …

Member Avatar for radu_
0
326
Member Avatar for Dane2259

For some reason when I try to run a program there are errors and iPhone simulator won't come up. It says: Interface Builder encountered an error communicating with the iPhone Simulator. Failed to determine the value for systemColors of UIColor. Command/Developer/usr/bin/ibtool failed with exit code 1 ... if anyone can …

Member Avatar for Dane2259
0
493
Member Avatar for vehpurple

i am doing a project for a mobile apps class and i am about 80% done. all the UI is complete, but i need to have a filled out form stored into a db. i used the core data model to set up all the entities/attributes, i just cannot figure …

Member Avatar for ChrisPadgham
0
164
Member Avatar for rraviraj

hi,, i m now working on some basics of phonegap for iphone . can somebody let to know how to create database for iphone apps development? and how to connect this database with the iphone? any suggestion are highly appreciated..thank you

Member Avatar for ChrisPadgham
0
118
Member Avatar for sha11e

1. Now with ARC, how would a simple little program like this look like with ARC?: [CODE] #import <Foundation/Foundation.h> #import "FakeClass.h" int main(int argc, const char* argv[]) { NSAutoreleasePool *pool = [ [NSAutoreleasePool alloc] init]; FakeClass *object = [ [FakeClass alloc] init]; //do some stuff [object release]; [pool drain]; return …

Member Avatar for ChrisPadgham
0
107
Member Avatar for matmis

Hello, Codility now supports Objective-C, check it out: [url]http://codility.com/demo/take-sample-test/[/url] , feedback welcome.

0
63
Member Avatar for VengefulToast

Sorry for the newbie question, but I was just wondering if it is possible to program in C++ or some language other than Objective-C on iOS devices? If so, what tools could I use? Visual Studio? Thanks!! :)

Member Avatar for VengefulToast
0
114
Member Avatar for musikluver4

I have been doing java for almost 3 years now, am just starting to learn Objective-C as of this past June. Been writing a few programs on my own and writing programs for the exercises in 2 very cool Cocoa/objective-c books. My question is how do I, coming from Java, …

Member Avatar for anilkumar-m
0
268
Member Avatar for JakeA

hi! i am new to objective c programming. i am making a quiz application. i have a home screen which options like: view instructions and start quiz. how can i display another view when i click a button. like, i want to display the instruction screen when i click instructions. …

Member Avatar for TPBarnett
0
156
Member Avatar for JuloF26

Hi guys! I want to start learning Objective-C and Id like to use c++ streams, problem is that it is causing error on this hello world example: [CODE] #import <iostream> #import <windows.h> int main( int argc, const char *argv[] ) { std::cout<<"Hello World"<<std::endl; Sleep(5000); return 0; } [/CODE] and these …

Member Avatar for TPBarnett
0
621
Member Avatar for Dani

A thread was started ([url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/363816[/url]) inquiring about creating an objective-C forum. I am open to this as long as it is indeed a unique language with unique characteristics (and not a subset of C or C++, for example). However, my main hesitation is that creating a forum is, often times, …

Member Avatar for jbennet
0
466
Member Avatar for arj'89

In need some help with this little programming .. I just got 3 errors .. :'( [code=c]#include <stdio.h> int main (void) { char A , B , C , D , E , F; int id1[ ]; float grade[ ]; float marks[ ]; float average; float num1, kk=0; /********* Jami, …

Member Avatar for arj'89
0
1K
Member Avatar for seanooi

How do I authenticate a .aspx page in objective-c? I've googled and viewed countless results to no avail. I found something about NSURLCredentials but nothing helpful. Any pointers would be very much appreciated.

0
77
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
127
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
126
Member Avatar for Rickay

I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks!

Member Avatar for Rickay
0
223
Member Avatar for Nfurman

Hi guys, I am learning Objective-C and today at night I managed a simple program, an usual one from ordinary exercise. Code: [CODE] #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Welcome to multiplication table test"); int rightAnswers; //the sum …

Member Avatar for gusano79
0
161

The End.