Hi, everyone,
I want to ask a question about the iPhone application. The application can let the user to enter the information in a costumed table (not the contacts book). After that, the program will use the retrieved data to add to the address book. But I don't how to add the content to contacts book. Can any one help me? Thank you ve...
Hello to all,
I have an app with a navigation bar at the top. On one view that is a subclass of UITableView, I add a UIToolbar beneath the UITableView with the following code:
UIToolbar *toolbar = [[UIToolbar alloc] init];
[toolbar sizeToFit]; // Set the toolbar to fit the width of the app
CGFloat toolbarHeight = [toolbar frame].size....
I'm new to Objective-C (and stackoverflow) and I'm a little turned around about best practices with regards to properties.
My understanding is that when you're completely done with a property you can avoid bugs by releasing them and then immediately setting to nil so that subsequent messages also return nil instead of an exception.
...
Let's say I have a NSArray with 50-100 objects inside. How can I sort the array into a random order?
...
Hi,
I want to write a copy and paste function, however I'd like to know how to paste something. I don't want to paste from the clipboard, I want to paste a string. Any idea how to do this?
Help is much appreciated
...
I am building an iphone facebook app. The backend servers need the sessionSecret string.
Whether I login using FBLoginButton, or resume my sessions using [session resume], the value of both the sessionSecret and expirateDate are always nil.
Do I need to do something special to get this data? Is it not relevant and that's why I can't ha...
Hello,
I am new to working with Core Data, and am working with a UITableView. I have a toolbar with a UISegmentedController, and I want to filter the items in the UITableView based on the selected index. In other words, suppose I have a UITableView that displays Books (stored in Core Data) and a UISegmentedController with segments to ...
Hi all,
So I've built a few apps and am now trying my hand at building a piece of iPhone code that others can drop into their applications. Question is how do I hide the data elements in an object class header file (.h) from the user?
For example, not sure if people have used the medialets iPhone analytics but their .h does not have an...
So I've got an NSFetchedResultsController that I activate on ViewDidLoad with the managedobjectcontext that has been passed on from the appdelegate on load.
I put a predicate on some field let's call it "sectionNumber" and say it needs to equal 1 in my predicate.
NSFetchResultsController works fine until I add a new object to the MOCon...
Hey guys, I have an NSArray of NSNumber objects that I have successfully sorted in ascending order using the following:
[myArray sortedArrayUsingSelector:@selector(compare:)]
However, I need to sort this in descending order. I take it that compare: only sorts in ascending order. While I can go about reversing the NSArray, I am curious...
I've created a command line tool that parses JSON from reddit's front page. After being able to successfully list all of the submission titles; I want to be able to prompt and wait for numeric selection to go deeper into the post.
Btw, I'm fairly new to the language and I'm creating this for fun. I don't really know how to even prop...
i have to generate a multiple sub view of recently opened web page. so that if i tap on any of those sub views, i can open that corresponding web page.its similar to the "Safari" in iPad.... plz give any suggestions how i could go about n any functions in objective-C for the same....
i'm using ipad simulator 3.2 and i'm a begineer in th...
Which resources did you find useful for learning iOS programming?
Books? website? videos?
...
I have an app that is playing archived *.mov files from a server. Some of them are longer than 10 minutes. Is this ok? Can anyone point me to the guidelines for playing video?
...
Hi guys,
i am new to this ABAddressBook in iphone. I would like to create an empty AddressBook and also add or remove records dynamically, so that we can add filtered contacts to it. I tried to remove record from the AddressBook but it resulted in some exception. Please try to tell me why this happens...
...
I have an id<NSFastEnumeration> object. I want to count the elements inside the object. How can that be achieved?
The only method NSFastEnumeration implements is:
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
This method returns the count I am looking for, but a...
Hello experts,
I have a question about Core Data. When starting my appliction, when is my data (which is stored automatically by Core Data) loaded into the NSArrayControllers? I want to modify it in the first place before the user can interact with it.
To be more specific: I have an NSArrayController for the entitity Playlist. Before t...
Hi,
I have a cpp class like that..
class MyContactListener : public b2ContactListener
{
int countContact;
///this is an objective c class...
HelloWorld *hel;
public:
void EndContact(b2Contact* contact)
{
///initialize objective c object
hel=[[HelloWorld alloc] autorelease];
...
Hey guys,
I've had trouble finding simple guides/examples for basic sockets in Objective-C (using NSSocketPort with NSFileHandle or using CFSocket/CSNetwork). Can anyone recommend a guide or a useful example? I would appreciate this greatly! I have tried to use this, but it is incomplete. Thanks!
P.S. I have been stuck in this part of ...
Hello
I am getting an EXC_BAD_ACCESS error on one of my table views. I have tried adding the NSZombieEnabled key to the executables environment variables.
It seems to be working in that the screen no longer crashes, but I do not get any messages from the log to indicate what's going on
What am I doing wrong?
...