What is the best way to add custom methods to my core data generated classes?
For example, say I have a "Person" entity with properties "firstname" and "lastname". I wish to add a "fullname" method, which returns a concatenation of the firstname and lastname properties.
I could add the method to the generated .h and .m files, but this...
Hi all,
I'm having difficulty to add a data structure to an array to create an array of dictionaries from a loop. I just knew that addObject in NSMutableArray only add pointer to it. I would like to know how to achieve my goal.
Here's my code:
NSMutableDictionary *woRows = [[NSMutableDictionary alloc] init];
NSMutableArray *workOrders...
I need code that gives me Badge No from server through iphone os.
...
hi all,
i am new to iPhone.
i want to know which Encryption /decryption algorithm is supported by iPhone ?
please suggest or provide me some helpful link
...
Hello,
I am new in iphone application. I want to make a simple application in which User can login from google and facebook. I have integrate API's for both of them. I have also completed the facebook connection but I dont know how to validate the Google user with its API (Gdata).
Can anybody please help me for authentication of google a...
Hi Guys,
I like to use CoreData and their entity model into my projects.
I need to know that how to store sqllite database into Iphone securely.
As everybody knows when the Iphone broken with jailbreak it have file system navigatable, that mean for me, someone or somebody easly open or copy to another envorinment my sqllite db. How do ...
@property (nonatomic, retain)IBOutlate UITextField *userName;
this property is to connect with TextField in IB.
Can we write [userName release] in dealloc to free the memory or it will be handled by IB.
Can i write @property(nonatomic, copy)IBOutlate UITextField *userName;
...
I am using following code to get bytes array. thx to this post.
Data *data = [NSData dataWithContentsOfFile:filePath];
NSUInteger len = [data length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [data bytes], len);
it is the right method to do so?
Now, How i can pass bytes array into url?
Thank You for Help,
...
Hello there, folks.
I would like to read your recommendations about the best APIs (free or of manageable costs, mind you) for mobile phones programming. What are the best APIs that can work on a large number of phone platforms (write once run everywhere, anyone?), and what about their security features?
The project in consideration is...
Hello,
I have developed an application, when I test for Memory Leaks using Instruments, I get very minor memory leaks. Yet my application crashes after some time.
Sometimes, it crashes even when I am testing on Instruments, and during that time there are very very few minor leaks.
What can be the issue?
I am having only 6 GB memory o...
If you have any insight on this, it would also be nice to know whether there's a big latency between connections.
...
Hi, all! I want to create multiple threads in my application. I' using following code for creating a thread.
This' buttonPress method where I'm creating a thread:
(void) threadButtonPressed:(UIButton *)sender {
threadStartButton.hidden = YES;
threadValueLabel.text = @"0";
threadProgressView.progress = 0.0;
[NSThread detachNewThrea...
Hi,
I know it is xmas eve, so it is a perfect time to find hardcore programers online :).
I have a sqlite db fiel that contains over 10 K record, I generate the db from a mysql database, I have built the sqlite db within my iphone application the usual way.
The records contains information about products and their prices, shops and the...
Hi,
I want to implement a drop-down list object of available options during the typing.
As for now I have implemented this search elimination using UISearchBar and results appears at a UITableView.
Instaed of this UITableView, I'd like that the list will drop-down from the searchbar like commonly done in other searchbars (like google se...
Hi guys,
I'm writing an iphone application and need to show a progress bar that shows the loading progress of a web page. I want to insert a JS function to this page and once I call it, it will give me the load progress (how much bytes have been loaded and the total size). Is this possible?
Thanks
...
I have a calculation which isn't working and I cannot work out why!
int numHoursInWeek;
int numDays;
int averageSalary;
int total_seconds_in_year = ((numHoursInWeek * 60 * 60) * numDays);
NSLog(@"average sal in pence=%i", (averageSalary * 100));
NSLog(@"num seconds in year=%i", total_seconds_in_year);
NSLog(@"cost per second=%i", ((a...
Hi,
I was testing adding a static image in an reused cell vs drawing it in the cell with drawrect method. I tested both methods and it seems drawing the image every time the cell gets in display is faster then adding the image to an reused cell.
Anyone knows, how this is possible? i have two more static images, should i draw these in d...
hi expert, i'm having task to enter rating(1 - 5) value, so i found the below code for date picker, can anyone help me to alter below code so to add UIPickerView to choose rate from 1 to 5
UIActionSheet *menu = [[UIActionSheet alloc] initWithTitle:@"Ratings"
delegate:self
...
I know it's possible to create a dynamically changable Default.png by creating a symbolic link. But that's not possible in iPhone SDK 3.0 anymore (only in 2.0).
How can I make this in 3.0, or is this impossible?
Tim
This worked on iPhone OS 2.0 http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone but not on iPhone OS 3...
For one of my new games I'm using OpenGL ES since it has multiple enemies and bullets, etc. How do you draw images on the screen with Opengl ES? I have a player.png image that is a 48x48 pixel image; how would I draw that on the screen?
...