166 Topics
| |
Hi I'm in need of some help here please. What i need the app to do. I'm trying to create an iPhone app. What i'm trying to do is get the iPhone camera to scan 2 letters and 6 numbers (e.g. JH847593) then send that id number off to a … | |
hi friends is there any way to get remainder for **flaoating variables** in C programming?? | |
hey there, I´m working on xCode, and theres a problem i don´t know how to solve it. in my main.m funktion is a error: thread 1: signal SIGABRT int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); <---- thread 1: signal SIGABRT } } could … | |
I have a NSView subclass TimeCircle which is the controller of my custom view. In TimeCircle there are several drawings taking place depending on the state of button butStart which is toogle type. The button is connected correctly to TimeCircle. I have the problem that I can´t get **[butStart state]** … | |
| Hi, I want to declare a float[] in .h and initialize in .m as explained below: .h file ` @interface A: NSObject { float data[10]; } @end ` .m file @implementation A -(void) loadData{ data={1,2,3,4,5,6,7,8,9,10};//Does not work } @end I could have intialized in the following manner, but Could it … |
I have been walking through the tutorial "second ios app" on apple's developer website and I am getting a warning from the code that is implemented in the "Get the User's Input" section at the bottom of this link https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/CreatingAddView/CreatingAddView.html#//apple_ref/doc/uid/TP40011318-CH6-SW1 In the implementation of the done method there is the … | |
NavigationController.h #import <UIKit/UIKit.h> @protocol NavigationControllerDelegate; @interface NavigationController : UINavigationController<UINavigationControllerDelegate> @property (nonatomic , assign)id<NavigationControllerDelegate , UINavigationControllerDelegate> delegate; -(void)cancelImagePicker:(id)sender; @end @protocol NavigationControllerDelegate <NSObject> - (void)mediaPickerController:(NavigationController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; - (void)mediaPickerControllerDidCancel:(NavigationController *)picker; @end NavigationController.m #import "NavigationController.h" #import "DataViewController.h" @interface NavigationController () @end @implementation NavigationController @synthesize delegate; -(id)init{ UIViewController *controller = [[DataViewController alloc]initWithNibName:@"DataViewController" bundle:nil]; … | |
#include<stdio.h> #include<string.h> typedef struct { char name[20]; long int ptn; float lt; }census; int main() { int i,n; census city[10]; printf("How many cities\n"); scanf("%d",&n); for(i=0;i<n;i++) { census city[10]; printf("Name:"); gets(city[i].name); printf("\nPopulation:"); scanf("%ld",&city[i].ptn); printf("\nlteracy:"); scanf("%f",&city[i].lt); } } | |
what is the iPhone iOS SpringBoard? Please explain in detail. | |
Newbie Question: Does NSString's instance method(s) initWith... return an autoreleased object or does receiver take ownership? - (id) initWithFormat: arguments | |
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, … | |
I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS. | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
How to set views using frame for both Iphone and Ipad | |
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? |
The End.