166 Topics
![]() | |
How do I get the physical keys of a connected Bluetooth device and set system related functions for the keys As shown here:    | |
I'm having a lot of issues wring codes in C++ specialy when 3 files are required (.h, .cpp and main.cpp). Very different to C that it was very easy for me but not now with C++. I nee to write a program to do the following: Create 3 files for … | |
How can I make the URL displayed in the MessageBox clickable, such that when a user clicks on it, it will open the link in a web browser? string msg = "MyApp | v1.0.0.0.1" + Environment.NewLine + "© 2016 MyApp" + Environment.NewLine + "All Rights Reserved." + Environment.NewLine + "For … | |
I am trying to learn objective C with my brother and I have stumbled onto a problem involving one trying to collect a user's input and checking if it is odd or even. I made this, and this works to test if a number is even or odd: #include <stdio.h> … | |
IS IT BETTER TO MOVE TO SWIFT OR STAY WITH OBJECTIVE-C? | |
I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of … | |
Given a typed List collection of int values named dueDays that has already been sorted, write the code to retrieve the index of the element with the value 30 and store the result in an int variable named dayIndex. Given a typed List collection of int values named dueDays that … | |
i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP hBitmap =(HBITMAP) GetCurrentObject(hdcImage, OBJ_BITMAP); GetObject(hBitmap, sizeof(BITMAP), &bmp); BITMAPINFO info { }; info.bmiHeader.biSize = sizeof(info.bmiHeader); info.bmiHeader.biWidth = bmp.bmWidth; // pay attention … | |
[Click Here](http://i.imgur.com/ka0Pnnr.jpg) I have a app having multiple Xib files calling in one main Xib and its class. I have added expand and collapse view which works on particular xib expand and collapse subviews as required and reduces/Expands Height too. This works well for one xib section when all tab … | |
I have high hopes for the Swift programming language, the presentation showed a lot of potentials for this language in apple keynote, just a question do you guys think swift will come to windows in an IDK soon? | |
Ever since I got a fancy iMac and started using the Xcode IDE, I got hooked on Apple's new Swift language. From what I heard, it is supposed to replace the aging Objective C. I left a couple of Swift code snippets in the Computer Science section about my one-month … | |
#import "Person.h" @class Asset; //i have used import "Asset.h" which contains definition for asset @interface Employee : Person { int employeeID; NSMutableArray *assets; } @property int employeeID; - (void)addAssetsObject:(Asset *)a; - (unsigned int)valueOfAssets; @end I got this snippet from objective c book. In the second line , author has used … | |
Everytime I link a `webview` into my OS X project, it always brings up `Use of undeclared type 'WebView'`. How am I supposed to fix this? I've tried linking the WebKit framework and things like that, but they never worked. | |
Assalam o alikum my name is Al-Haya Noor and i am using very first time the forum. is there any one who guide me? i have a problem while doing my project. in Embedded-C and the problem is Consider the following sequence of values: 00000000 00000000 00000001 00000000 00000000 00000100 … | |
this is my background http://s13.postimg.org/6zejiqc87/1429994667798.png in current code user can move sprite to any location, but I want the user to only move sprite to specific location. I have one Sprite (s1) I want to move it to specific position as you can see my background have line and dots … | |
I want to calculate user steps(like pedometer).I know that with iPhone 5s, 6 and 6+ we can use `CMStepcount` or `CMPedometer` or class(which use M7 chip of devices) but iPhone 5 and lower versions does not support M7 chip, so we can't use `CoreMotion`. By searching all over internet i … | |
Recently I am facing too much issues in making the apple accept my app because of inapp purchases download failures. Is it possible that I submit a version which will fetch the inapp purchases ID's from my own server and than fetch the inapp purchases details from the apple. I … | |
I'm trying to create simple game on xcode (swift) what I'm trying to do is moving player pieces from their positions how can I implement moving pieces from [number]positions to [number]positions for example from positions 1 to either 2 or 0 otherwise it get back to the previous positions more … | |
Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if … | |
Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if … | |
Hello. I am getting into app development and started with a calculator. The input is not equal to the output in any size I set. Here are some screenshots: Input: [Screenshot](https://www.dropbox.com/s/otncvnpfotfgetu/Screenshot%202015-02-05%2014.44.43.png?dl=0) Output: [Screenshot](https://www.dropbox.com/s/360u5iastr69hgq/Screenshot%202015-02-05%2014.45.11.png?dl=0) And finally, here is the size thing: [Screenshot](https://www.dropbox.com/s/23aln2fzovpv72y/Screenshot%202015-02-05%2014.46.00.png?dl=0). | |
I am currently writing an iOS application which fills Dynamic cells with data retrieved from a PLIST file. I have searched and searched but cannot comprehend/find a way to make my data searchable. I would like my plist to be searchable and provide the correct information. Any assistance would be … | |
How can i start programming in objective c? I am aware with c#. | |
I expected there to be one, especially on a site as popular as this one. | |
Here's my understanding fetching the input: int num = 0; NSLog (@"Input 5 numbers"); scanf("%d", &num); NSLog (@"\n You inputted: %d !", num); Sample Input: 54321 Output: 54321 But the output should be: 5 4 3 2 1 | |
I am creating a contact program with python and wxpython. While creating the browsing function for my program I ran into a problem. I've been searching for hours trying to find a way to fix it. Unfortunately I haven't had any luck on fixing the error/problem. Here is the code … | |
dear daniweb friends, i really need help. i want to parse a json from a file inside folder. that folder inside xcodeproj (not from URL). i use this code: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ /*NSData* kivaData = [NSData dataWithContentsOfURL: [NSURL URLWithString:@"http://json.comli.com/reportTextEn.json"] ];*/ NSString *filePath = [[NSBundle mainBundle] pathForResource:@"reportTextEn" ofType:@"json"]; NSError *error = … | |
I developed a 3d cube consist of 6 layer side by side to form a cube type structure. I am getting the layer info on click using touch event. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] == 1) { for (UITouch *touch in touches) { CALayer *layer = [(CALayer … | |
im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize … | |
I Have an NSButton and Im trying to get it to display the barber stripes sideways when the button is pressed. I can't redraw the NSRect, and was wondering if you had any clues on implementation? | |
Hi i need help to solve this issue: refresh the first controller, UITableview and navigation bar for changing bg colors the color are set and it works i need only to refresh the app for update the app with the new colors i change the colors of my app clicking … | |
Hi i've done an app and tested even on iphone 4s/5/ 6 in xcode 6 and it works on simulator if i test on a iphone 4s device ios 7.1 and 8 the scrolling doesnt't work on any pages and there is a static page that seems covered and i … | |
how to auto logout an apps when user did not touch the screen for at least 2 minutes? i add this to AppDelegate.m : - (void)sendEvent:(UIEvent *)event { [super sendEvent:event]; // Only want to reset the timer on a Began touch or an Ended touch, to reduce the number of … | |
I am having trouble connecting my app to bluetooth low energy. I am trying to get the range and alerts for the app to the BLE. How do you write a value to a characteristic with a handle? | |
I am trying to send data from a UITableView into any type of database. I have 2 questions. 1: What type of database should I use (ex. MySQL, access)? 2: How will I transfer the database from a table view to the type of database I should use? PS: Please … | |
Hi ,i have a contact form made with xib file it works but i can't change the background color of the view programmatically i tryed with this but nothing, i know how to put an image background but i need to change the color on the fly how can i … | |
Hi, i want to change the colors of my app clicking a button so when i click this button there's this code -(void)changestyle{ change=true; [self init]; } it refresh the first controller and change the toolbar background color and the bg color of the buttons but i know it's incorrect, … | |
I'm working on this Objective c programming assignement I found online. I not sure what part C is asking me to do?. I have tried doing a,b and d. Any help or suggestion will be appreciated. Part 6 a) Implement class A with properties a1, a2, and a3 (int, string, … | |
I am learning objective-c my basic purpose if to development a msging client, please suggest me good site for lessons and help. Thanks. | |
I keep running this code and it works until I press the button, `findShapeCalc()`, and then I get EXC_BAD_INSTRUCTION in the main.swift at the line `NSApplicationMain(C_ARGC, C_ARGV)`. Why does this keep happening? Code in question: import Cocoa class ViewController: NSViewController { @IBOutlet var dropDown : NSPopUpButton @IBOutlet var length : … | |
Hi, i have a UITableview filled by an xml it works, but if i load the cell from xib file and set the height of the cell to 196 the rows don't fit the view and from the third cell they are invisible becouse there isn't scrolling how could i … | |
Hi in my app there is an image thumbnail for each table cell it works but when the image there isn't for that row i'd like to show a default image the image url is retrieved from an html string and put into an array could you help me to … | |
Hi All, I'm very new to Objective-C and I'm developing a "simple" app that just takes user input from a form. There are multiple forms; each is selected from a list, UITableView let's say. The forms have a lot of similar fields but some are different. My question is, do … | |
Hi All, I'm trying to setup a scroll for a UIView within a UIScrollView. My view hierarchy is: UIView (Controller) > UIScrollView > UIView (I'll call this subView from this point on) I have used the IB to set the layout. I set the top of the subView to be … | |
![]() | Hi guys, I'm hoping someone here can help. I am to develop an application for a project which keeps track of tennis scores. Having not been a tennis fan whatsoever during my life I am in need of some assistance developing the ontology (rules) for the apps logic. Can anyone … ![]() |
Hi All, I'm trying to connect to a mysql database using the MySQL Connector from Oracle. I'm hitting my first issue of linking the libraries and was hoping that someone could nudge me in the right direction. What I have done so far: Downloaded mysql-connector-c-6.1.3-osx10.7-x86_64.dmg from http://dev.mysql.com/downloads/connector/c/ In XCode, in … | |
Hi if i would make an app for manipulating images , something similar to a little photoshop for ios, are there any frameworks to use that could help me? what i have to study? or is it to write km of code from the ground up? thank you | |
i am working on a view controller that contains two picker views (`FromCur` ,`ToCur`). those picker views are filled by an xml parser . althoughthe `NSLog` in the Title for row function is not giving me a null answer , the picker views displays a question mark. i have been … | |
I have launched new project with storyboard and immediately delated .main, .h, .m files leaving behind Appdelegate h and m files. Then added .xib file and added table view. After running this app , table view was not getting displayed. Please help me to resolve this issue. # AppDelegate.h # … | |
By the way I have this declared in my .h file. Even if there is a string method for this I would like to know how I could do this. Here is my code. -(NSInteger) RetrieveAscCode:(NSString*) inchr{ NSString *chtable =@"0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; NSInteger scan; NSString *trim; trim = [inchr substringToIndex:1]; for(scan=0;scan<255;scan++){ if … |
The End.