551 Topics
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.
[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 …
[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 …
I wrote the following code to create a wav file which generates varying frequencies based on the Hebrew Gematria pattern. It compiles great but does not write the wav file. What am I not understanding about this code? [CODE] #include <iostream> #include <math.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include …
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!
I have made an application in which there are different buttons with images. When the button is clicked, it writes "hello" on the console because I have written in the NSLog("hello") statement in the funtion which is called on button click. But I want to print the database column record …
Hello I am new to iphone application development. I making an application in which there are foods which I have to show on the iphone screen. I have made uiscrollview and buttons on it with images of dishes on it throgh loop but I am facing a problem that all …
Im a computer science undergrad student in my final year. its time for selecting my final year project. I have two projects in my mind which are as follows 1- create kernel for iPhone based on openiboot 2- create an iPhone to android code conversion tool The first project was …
A [URL="http://bit.ly/appcelerator_idc_q4_mobile_developer_report"]new survey[/URL] jointly conducted by Appcelerator® and International Data Corporation (IDC) released September 27, 2010 reveals Appcelerator Titanium developers favor Android over iOS in TVs and other devices.[ATTACH=right]17397[/ATTACH] Although the market shows that Apple currently leads in iPhone/iPad sales and popularity, the survey reveals that of the approximately 2,300 …
Hi, I really need help with understanding how to solve an exercise. Create a new textfile with the name 'studentinfo.txt' and write following and save: Marie Anderssen 29 Alexander Lind 35 Gholam Payro 32 Zlatan Ibrahimavic 26 Write a program that read the information from 'studentinfo.txt' and calculates the average …
News reports suggest that March has been a good month for lovers of, and developers for, the Android operating system in pretty much every regard. That good news comes at the expense of the Apple iPhone and iOS we are led to believe, which appears to be losing the fight …
[ATTACH=RIGHT]20689[/ATTACH]This week [URL="http://radar.oreilly.com/2011/04/apple-location-tracking.html"]on Oreilly.com, Alasdair Allan and Pete Warden[/URL] revealed their discovery that Apple tracks and saves your location via iOS4 through your iPhone or iPad. This has sent a wripple of concern across the country and many people are demanding to know why Apple stores this info and how …
Hello all! I'm having problems with running c++ on iOS. I have a iOS openGL project in Xcode 4 and an external library written in c++ that has to be a dependency to the iOS target so it can run on an Ipad. right now I'm testing with the iPad …
Hey people. Been having a problem when trying to use .gif files as images for sprites. When I try to use one, I get an error such as: [CODE]Documents/Code/Cocos2D/Cocos2D/Player.png: No such file or directory[/CODE] But in the code, I am calling for the picture "Player.gif" to be used, as you …
hello, ive been looking around for iphone programming book seen some on websites but there once I like seem to have bad review so I to know which book you like and recommend?? would like a book that has: good understanding of objective-c good chapter on maps and augmented reality
Hi, i am sure most people here are subscribed to some feeds to keep up with the news, i am subscribed to around 8-10 feeds, and they give me 300+ updates everyday, but i am only interested in about half of them.. some of them are the next web, tech …
Hi, I have a piece of code, which gets a string of code from a webpage. It's the HTML source code, from which I want to make an array, in which I can find data the user will input. However, I need to extract all the useful information from the …
Rumor has it that Osama Bin Laden received his new iPad 2 and instantly became target #1. That's right Mr. Al Qaida, had you [URL="http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/news/361140"]read the editorial threads on DaniWeb.com[/URL] you would have known that Apple is watching and recording your moves. In a heroic effort to end that war …
I don't know what I'm doing wrong but I open my filed correctly but it doesn't display the contents in the file. Please help. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { const int SIZE = 81; char input[SIZE]; fstream dataFile; dataFile.open("info.txt", ios::in); dataFile.getline(input,SIZE); system("pause"); return 0; }[/CODE]
Ok, I've been trying to run this program on Borland C++ (Version 5.0A). The program is a Point of Sale program. I keep getting the errors "expression syntax at (121,26)" and "If statement missing ) at (129,6). Try as I might, I can't seem to fix the errors. Help? [CODE] …
Hi there! I am trying to figure out how to disable the iphone keyboard from popping up, when a text field is clicked. Is there a line a code to use? or maybe go into xcode and manipulate info.plist? Any kind of help is appreciated.
hello am doing a library program. i am almost done with it. but now my problem is i have to make the record update section work as each of the record can be updated separately. so far i think of making another menu and do it like that. now my …
I need help in pulling this program apart, and reformatting it to use functions that I didn't know i needed to implement until right now. * float calculate_time (4 parameters) finds the amount of hours between two times given. It should return 0 if the amount is less than 0. …
Hello, I am creating an iPad app which should have a grid-like view on the first page. Basically, it will have 9 UIImageViews side by side (in a 3x3 box) and each UIImageView drills down to a view by using a UINavigationController. Should I set up three UITableViews side by …
I want to start development for IPad. I own a late model mac mini and want to use xcode 4 for development. What education materials should I use to to accomplish this? Thanks.
I see some comments about Objective C or Cocoa however their does note seem to be a specific area for such comments. Objective C would be a good listing below the other languages. Any serious OSx iPad or iPhone developers would look here first for information. Since there is more …
hello me and my friends were assigned to make a program that can add,delete,update and show information. we were able to make this code ( am sending u ) but we cannot solve some problem like the after adding or deleting or any other work the window does not goes …
Can I ask what the programing languege used in iOS? I heard it was Xcode but I'm not 100% what that is, lol if anyone can give me a hand it would be great. Also (and I know this is kind of a supid queston) can you use and C++ …
I'm wondering if its possible to program using xcode for ios(I pod touch, I phone, I pad) on windows?
Hi ~ Just found DANIWEB while researching ios format flags...Programming is new to me though this is my second programming class (C++). My first was VB I. Things were going along swimmingly until our book introduced flags for formatting : ios::std:: etc.... Well the book did NOT introduce these flags...they …
hi to all, can anyone tell me about streambuf and filebuf classes...i got to know that ios contains a pointer to streambuf....so it must be something important ,right?.....
I really don't know how to capture the information from the bitmap file when talking about the pixelArray, I know what I have to do it when I capture it to turn it negative, but each time I run my code it crashes when I run the code I think …
Hey guys, I am a complete beginner to programming. My only background is basic programming in C. I would like to learn more but I don't know where to start, I thought about learning C++ but then i read somewhere that learning obj-C or Java is a better idea. At …
I am writing a program to make pictures into their negative. But I do not know how to open the bitmap file, I don't know if I should open it as a binary, when I try to my security coding kicks in, and when I open as ios::out my security …
i [COLOR="blue"][/COLOR]I am geting fatal error help me [CODE]/* The United Bank makes certain computerized facilities in their bank to implement customer records and their daily daily transaction records. The bank keeps certain information as follow: INITIAL.dat: acc_no : Account number name : Name of the Accountee address : Address …
Need to read 4 bytes into a long int format. Both inFileDrs and outFileDrs are in ios::binary form. Is this the correct way to do this? The original piece of code was [CODE]var tableCount = reader.ReadUInt32(); writer.Write(tableCount);[/CODE] [CODE] unsigned long int tableCount, firstFilePos; inFileDrs >> tableCount; outFileDrs << tableCount;[/CODE]
[ATTACH=right]15517[/ATTACH]If you cannot wait to get hold of the new iPhone 4, should you have been lucky enough to have successfully pre-ordered, then you could always upgrade your existing iPhone 3G/3GS to iOS 4 and get many of the same features. Be warned, though, the update itself is not without …
[URL="http://vimeo.com/15374659"]Titanium +Geo[/URL], a new location-based analytics platform for mobile applications, released on September 29, 2010 and developed jointly by Appcelerator® and FortiusOne, allows marketers and retailers to accurately measure the effect of where, when and how their mobile applications are being used by their customers. [ATTACH=right]17421[/ATTACH] This is a data …
Dear all I have the following code [CODE] void initializeData() { Customers *CustArray; CustArray=new Customers[150];//allocate 150 memory locations of class Customers Flights *FL=new Flights[150]; } /*End Initialize Data fuction*/ /**********************************************************************************************************************************/ /*Backup Menu implementation*/ void backupfiledefaultfilename() { ofstream file_ptr; // Declares a file pointer. file_ptr.open(“backup.bak”, ios::out); if (!file_ptr) { cout << …
hi all i want to read a secific line in a text file here is the text file form [CODE]iphuc 0.6.1 with tab completion. >> By The iPhoneDev Team: nightwatch geohot ixtli warren nall mjc operator Unsupported iTunesMobileDevice.dll Version ee0000 15 CFRunLoop: Waiting for iPhone.[/CODE] or [CODE]iphuc 0.6.1 with tab …
When I was studying computer programming in college many years ago, I didn't imagine that our work could impact lives, particularly in a negative way. We've heard reports (mostly true) of death, dying, and destruction as a result of software problems, such as the time a plane flew right into …
i wrote this book as it was presented in the book: header: [CODE] #import <UIKit/UIKit.h> #define degreesToRadians(x) (M_PI*(x)/180.0) @interface SwapViewController : UIViewController { IBOutlet UIView *landscape; IBOutlet UIView *portrait; //Foo IBOutlet UIButton *landscapeFooButton; IBOutlet UIButton *portraitFooButton; //Bar IBOutlet UIButton *landscapeBarButton; IBOutlet UIButton *portraitBarButton; } @property (nonatomic, retain) UIView *portrait; @property …
This brand new update to the ever popular TomTom for the iPhone app (which has featured in the Apple 'top grossing apps' list since it was first released 18 months ago) adds one highly requested feature: Map Share. Why the big hurrah over one additional feature? Simple, it's a hugely …
Hello my friends, I'm getting new types of ignorance from new iOS SDK. (xcode 3.2.5). I always wanted to have my own gameloop. here is the some part of it. [ICODE] - (void) gameLoop { //get all touches while(CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.002f, TRUE) == kCFRunLoopRunHandledSource); //Update logic: UpdateLogic(); //Render Frame Render(); } …
Im an IT student(just started) we had this basic assignment: Antivirus Suppose you are going to create an antivirus program. You will need to search a file for any trace of a virus and if found it should be removed. However, a backup of the original(“infected file”) file should be …
hi!! i,ve written d program on airline reservation .... but i m facing problems regarding the value of seats ... that is how do i sore different values of seats available in diff flights [code] class air { protected: int z; char clas[10]; char source[5][10]; char dest[5][10]; int seats; int …
Hello! My boss requested me to download a songs to his iphone. But the artist are too old and classic so I'm having difficulty in searching it. And I notice that a lot of songs classic or even newly release are all uploaded in the Youtube. So I'm search for …
hi i'm doing a project on iphone and i want to modify some data , then send it as a signal in a normal phone call.
Why is this not reading from the file The contents of the file [CODE] 123456 James.Watson 234567 12.Clover.Crescent Spanish.Town St.Catherine Single Standard Passprot [/CODE] [CODE] ifstream file; file.open( "guest.txt", ios::in ); if ( !file ) { cerr << "File could not be opened" << endl; exit( 1 ); } guest …
Hi all, I got this assertion problem that i cant seem to solve, could you guys help me on this. So far, i think the problem might be due to the while loop for the iterator line by line check and i have made changes to it but still cant …
The End.