166 Topics
![]() | |
Hi., I have more than 10 products (Non-consuable with hosted content) in my ios app. I want to add an option purchase all items. Is there any possible ways to purchase all products in a single buy option (including downloads). Thanks | |
Hi All, I have this code in my tableView; - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { YFRFormViewController *formViewController = [[YFRFormViewController alloc] init]; NSArray *campaigns = [[YFRCampaigns currentCampaigns] allCampaigns]; YFRCampaignForm *selectedCampaign = campaigns[indexPath.row]; // Give formViewController a pointer to the item object in row formViewController.campaignForm = selectedCampaign; // Push it onto the … | |
My project is on base SDK 10.6 built in Xcode 3 - it’s important that it is a universal binary that also works with PPC. In 10.9 my application has really jerky scrolling compared to Safari - if I add [self setWantsLayer:YES]; the scrolling is super fast like Safari, great! … | |
I am 11 years old and I love programming, I know: PHP (A little) , JavaScript , HTML , C , C++ and Java (Just started learning). I really wanna learn Objctive-C but I couldn't find good free tutorials. Can anyone please recommend me a Objective-C tutorial? Thank You! | |
Hi there! I am making a space invaders game for iphone with xcode. You can move the ship to the right or to the left when pressing the right or the left part of the window. The "enemies" appear randomly at the top of the window, but the problem is … | |
Hi., I'm using cordova2.9.0 in my ios app, from CDVReachability.m file, i tried to check internet status with url for my ipad simulator as well device. But it shows status wrongly [My network is connected through sonic firewall login]. Any help? CDVReachability *isReachable = [CDVReachability reachabilityWithAddress:@"http://www.google.com/"]; // CDVReachability *isReachable = … | |
I want to Retrieve data from Webservice into objective c and bind it to NSTableview. can you please help me out with a complete steps of code. | |
Hello.... I am trying to create my first iphone app and I have decided to make a compass. I am trying to make the compass face a specific gps coordinate rather than facing north. Does anyone know how this is done or have any resources that I can use? Thanks! | |
Hi, I have a table view controll whihc has 3 views. in one view I have a button. When the button is pressed another differnt view is loaded. This works fine, but when I go back and try to click the one of the main view the view from the … | |
Need help reading a csv to NSString and then to NSMutableArray. I need to output the name of a certain row base on car. file ex: car, bike, wheels toyota, mountainbike, rims .. .. .. | |
HI, I created an app to add a clinc details to the sqlite3 db from xcode. the code is below. The (sqlite3_step(statement1) == SQLITE_DONE) does not execute it. I dont get an error or anything. I can't figure out what exactly is wrong.Apprecite if someone can tell me what i … | |
Hi guys, I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell: [CODE =c]$ gcc -lobjc hello.m -o hello[/CODE] and … | |
I want to make a Cocoa applictation using all code in Xcode, not using the Interface Builder. I have searched a lot on this and have not found anything since most people want to use the Interface Builder. Please don't say anything like "Don't waist your time on it", "They … | |
Kindly help me to resolve this issue. I'm using Xcode 5.0 and options (such as check/uncheck storyboard )are not getting displayed whenever I launch new project with single view application. p.s: I used to get above mentioned option till yesterday. | |
Hello Daniweb, I will soon reach the point where I'm ready to move on my journey of programming. One thing that has always interested me is the mobile world. I would like to develop things for the mobile world. What I want to ask/know is tips from people already developing … | |
Hello, I'm really interested in developing apps for iOS. I do already have everything setup and I'm ready to start programming. What I'm curious about is; Is it worth buying the apple developer account already? I don't have anything ready to release yet, but I have read that they also … | |
I was running my program whenn it crashed and gave me a error of NSInternalInconsistencyException reason: Could not load NIB in bundle can anyone help please | |
I need to compare two numbers in a cocoa application, but it doesn't allow me to use the regular signs (>=, <=, <, >) nor will it let me use isGreaterThanOrEqualTo:[] (Which, I undestand only takes an object, but I thought I would try it). So can someone please tell … | |
I was reading through an Objective-C book at the same time I was reading a "Good Coding Preactices"/Design book and I noticed how badly designed (I Think) Cocoa is. My biggest issue is it's seemingly unpolymorphic design. For instants, like many other objects, the UIButton class's style is defined using … | |
Hi All, I was following a tutorial online that showed how to imput info into a MySQL database from an app, and I decided to edit it a little so that I could post what I wanted as opposed to the provided example. The problem im having is that the … | |
Hi All, So i have recently started developing an application in XCode for a project that I am working on. The application uses php scripts to connect to a mysql server. The problem I am facing is that when I coded textfields to send the information to the server when … | |
What is the Windows equivalent of Cocoa from Objective-C? I'm thinking C++, but is there anything that includes an easier way to create a UI? (If there is an IDE that features a UI builder for C++, please mention) ((Sorry if you don't think I should've posted this here. Since … | |
how to get the codes for music player in objective c | |
I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this? switch(textField){ case 'someCase': // do something break; default: // do something else break; } Considering I already created an outlet for it in the @interface … | |
Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField … | |
Hi , i would like to include a normal conventiional function in to my obcetive c project. I have tried putting the body of the function outside the implementation section , inside the @implemenation section. I know it wont be part of the class i'm defining , but do i … | |
I had an exam in database. during the tutorials we were instructed to create a query and run it. The exam question only asked to create a query. I did just that n got it wrong. Would u say that a create query question always expects the query to run? … | |
models.py class Settings(models.Model): date_format = models.CharField('Date format', max_length=100) time_format = models.CharField('Time format', max_length=100) views.py for saving the date and time format in database as boolean. def date_format(request): settings = Settings.objects.get(user=request.user) settingsForm = SettingsForm(instance=settings) if request.method =='POST': settingsForm = SettingsForm(request.POST,instance=settings) if (settingsForm.is_valid()): settings=settingsForm.save() return redirect('/member/follow-up/') return render_to_response( 'incident/date_format.html', { 'about_menu': True, … | |
Hello DaniWeb, i recently began reading a book called programming in Objective-c by Kochan 5th edition, One thing i havent gotten the grasp on is Properties and WHEN to use them or if they are even usable on such a simple test program such as in a coffeeShop class for … | |
From an exercise in a cocoa programming book I'm trying to make a to do list app that simply adds, removes and change the entries in the table. I have a lot of things wrong with it. relevant info: * add button: add entry with text from text field. If … | |
Hello daniWeb, i have a question, i am trying to implement a live Ticker for my iOS app but i am stuck in a very frustating situation. So my app should have live internet connection to connect to a sever which has a ticker that Updates continuosly. So here is … | |
I'm going through an exercise in a mac programming in cocoa book, where there is a GUI and from a textfield I enter and to a list of strings displayed on a table. There are plenty of things that aren't working, the most confusing of which is I keep leaking … | |
I would like to know what is the difference between dot notation and using square bracket. | |
1. I see %f is for float, %@ is for string. Is %d for anything? Which % is for double? Which % is for BOOL? 2. What is the different between double and float? When I put float flow=-8.1234567890123456789; //4 bytes floating point double dobble=-8.1234567890123456789; //8 bytes floating point NSLog(@"flow … | |
How do I find the length of an NSMutableArray? | |
This code gives me the error message "warning: passing argument 1 of 'stringWithCString:encoding:' makes pointer from integer without a cast" #import <Cocoa/Cocoa.h> #import <Foundation/NSObject.h> #import <stdio.h> //#import <string.h> @interface Numbers : NSObject { NSString *name; int age; NSMutableArray *list; } //-(void) setName; -(void) setAge :(int)a; @end @implementation Numbers -(void) setName{ … | |
Hello, I have learned some basic Java, but now I want to learn Objective-C. Is there a tutorial or problem set of programs to make that I can follow to quickly learn the basics? Here is what I know how to do so far... #import <Foundation/Foundation.h> int main (int argc, … | |
Hello all, I have a MKMapView that is having a very strange problem which is kind of hard to explain. I have an MKOverlay that is saved between sessions by saving the points of the overlay to a file and loading the overlay in viewDidLoad. So here's the problem: Steps … | |
What I am trying to find out is how to securely send a username and password to an API. Basically I am accessing a restful API using a URL like "https://myapi.com/api/username=test&password=test123". If the username and password are correct the API will return a JSON page. How would I go about … | |
hi, i have sent you already text for objective c tutorial, but unfortunately i didn't get any reply from you. if you send me objective C tutorial i would grateful to you. Thanks Antor | |
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 |
The End.