Where is "Run Script" on the target?
Hi, I want to apply this workaround but I cannot find the "Run Script" setting, property, flag? I can see it in the temporary script file that is created on build. BR ...
Hi, I want to apply this workaround but I cannot find the "Run Script" setting, property, flag? I can see it in the temporary script file that is created on build. BR ...
I'm quite new to objective-c. I have problems when creating array of objects. In java it is possible to make array of object and can access individual instances directly. For example, SomeClass[] instance = new SomeClass[10]; instance[i].var=10; Is there any way to do like this in objetive-c? Can I access the instance variable in ar...
OrderDetailsView.h #import <UIKit/UIKit.h> @protocol OrderDetailsViewDelegate; @interface OrderDetailsView : UIViewController { IBOutlet UITextView *OrderDetails; NSString *selectedOrder; id <OrderDetailsViewDelegate> delegate; } @property (nonatomic, assign) id <OrderDetailsViewDelegate> del...
Is there a way to differentiate when a user is exiting an app because he/she pressed the home button or because it's receiving a phone call? in iOS 4.0 the app doesn't quit if the user answers a call but it does in 3.x. I'd like to save my app state if the user is interrupted by a call or any other phone event but not if the user exits...
Hi, Pretty new to iOS dev, I feel I have a grasp of the basics. I was thinking through an app I would like to make and the steps involved, components needed... and I have no idea how to or what is the best method to save user input and retrieve it. An example being (I don't plan to make this, but it illustrates what I want to know), s...
Hello, I've queried this forum for hours looking for an idea/answer/solution for my problem, but came up empty every time. i have created a SynchronousRequest using the following: NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc] initWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [params len...
Hello, I am using iTunes file sharing in my app, and need to put Core Data's sqlite database elsewhere so that users don't fiddle with it. I have read a previous SO post regarding the best way to hide the sqlite file that Core Data uses. There seems to be conflicting opinions regarding whether to put the database in Library/Preferen...
Hi guys, I am using some code to record and save some audio. Then play it back later. It works perfect on the Emulator, but on the device the file is size 0. I am thinking maybe there is something I am missing. Here is my path where the file gets saved to, and loaded from. On the phone : /var/mobile/Applications/8CE3099A-0CA6-411F-B...
Hello, in my xcode project, which is based an persistentDocument, the "save" options are not longer choosable. I've checked the connection to first responder. Everything seems right. When I do some work (data entry) and close the app. The app is asking me, if I want to save. But I just can't choose save from the file menu. Thank you in...
Hi, I am new to objective-C and iphone apps. I am accessing SQLite and have 3 rows in my table "coffee". I used the following way to grab sth out from the table, however, only then 2nd and 3rd rows are being pulled out {the 1st row is always missed}. Is that due to the logic in my while loop by checking while sqlite3_step(selectstmt) r...
I want to compare user inputs with a string from a database. As I expect users to misspell all the time, I want to compare with a certain amount of slack. Apparently, Daitch-Mokotoff have developed a system that is rather precise, more so than Soundex. Does anyone know of an implementation of this system that will run on an iPhone (pre...
Hi all, I am implementing MKMapView based application. In that I showed the current location with a pin. When my current location is changed the pin is blinking to the updated location. But my requirement is to stop blinking and make an animation or move the pin smoother with out blinking. I tried in many ways but I didn't find a soluti...
I have saved my images in database with type BLOB. Now I am extracting these images from database using sql stmt and saving it in a NSData object. see the following code snippet NSData *img = [[NSData alloc] initWithBytes:sqlite3_column_blob(loadInfostmt, 4) length: sqlite3_column_bytes(loadInfostmt, 4)]; self.birdImage = [UIImage ima...
Does the NSFileManager method contentsEqualAtPath:andPath: create a dynamic checksum to compare two files, does it open the file header and compare file header details or does it use some other method for comparing? I have a list of 200,000 or so files to compare where the local files are to be compared with the files on a remote server...
I'm having an issue with drawing to areas outside of the MKMapRect passed to drawMapRect:mapRect:zoomScale:inContext in my MKOverlayView derived class. I'm trying to draw a triangle for each coordinate in a collection and the problem occurs when the coordinate is near the edge of the MKMapRect. See the below image for an example of the...
I am trying to read out some values from response headers from a Shoutcast stream. In the following code, what datatypes should my variables be when reading the values? *datatype* header = CFReadStreamCopyProperty(stream, kCFStreamPropertyHTTPResponseHeader); *datatype* varname = CFHTTPMessageCopyAllHeaderFields(header); EDIT: U...
HI, I am having a strange problem. I am developing iphone application with in-app purchases in it. When i do a release build with Developer provisioning . in-app purchase work fine. but when i do iphone distribution build. in-app purchase stops working ... it always comes in failure .. why is that happening ??? any ideas .. ...
I made a class called Person. It looks like this Person ------- Name Points Then I created an NSMutableArray called team. It contains several of these person objects. I create several teams. Then I created another NSMutableArray called allTeams. It holds all the team arrays. I want to sort the allTeams array by the total number of p...
I'm refactoring a project that involves passing around a lot of arrays. Currently, each method that returns an array sorts it right before returning it. This isn't ideal for a couple reasons -- there's lots of duplicated code, it's inefficient to sort an array two or three times, and it's too easy to write a new function but to forget ...
I can't seem to get NSCoding to store the 'frame' or 'center' properties of my UIImageView subclassed object. It seems to store everything else, both custom properties and standard class properties (e.g. 'hidden', etc...), but not the 'frame' or 'center' properties. I'm NOT trying to archive a UIImage (as this does not comply with NSCo...