Hi, I'm not seeing the text for my UITableView show up.. in fact the TableView doesn't appear to be on the screen at all because I cannot select the empty rows.
Strangely, my log in cellForRowAtIndexPath shows up ok with the expected data - I just don't see any on the screen.
-(void)bindFriendsToTable:(NSArray *)friends{
NSLog(@"frien...
I have some NSOperations subclasses that handle CoreData imports. I believe i've ticked most of the non-main thread issues
I create my own autorelease pool in the
main method
I create a NSManagedObjectContext for each
operation
These operations are loaded into a NSOperationQueue, with the maximum number of concurrent operations set 1...
How can I add an address to a Address Book contact in iPhone?
...
I am fairly new to iPhone coding and wanted to know if someone can help me.
Have got the code ready so that when the app loads a UIAletView loads and prompts the user to review/rate the application but i have a button called "Never Rate"
I needed help to find out how to code the "never rate" button so what when it is pressed the UI Ale...
I am building an application on night vision but i don't find any useful algorithm which I can apply on the dark images to make it clear. Anyone please suggest me some good algorithm.
Thanks in advance
...
i am trying to get a random number of items from an an array of dictionaries that contains 2 items. one item is at index 1 and the other is at index 0. i want to randomly alternate between the two or have the able to be viewed in a random order each item. (i know i have just 2 items ill increase the amount)
this is the code im trying to ...
I feel like I'm doing this wrong, or it's just a result of my novice with sockets. I'm using asyncSocket on the iPhone to send data to node.js. My problem is that every so often, the app will hang, and then I'll get like 5 or 10 messages at once in one data read, rather than separate, more timely reads.
Is this a network hiccup and the ...
Hi,
I'm trying to put an Annotation the lower left corner of currently visible map region, although the following code
CLLocationCoordinate2D origin = getOriginOfRegion(mapView.region);
[[[SimpleAnnotation alloc] initWithCoords:origin] autorelease];
...
extern CLLocationCoordinate2D getOriginOfRegion(MKCoordinateRegion region){
retu...
I have an view overlayed on top of many other views. I am only using the overaly to detect some number of touches on the screen, but other than that I don't want the view to stop the behavior of other views underneath, which are scrollviews, etc. How can I forward all the touches through this overlay view? It is a subcalss of UIView.
...
I have a call to a URL and receive back a 0 or 1 on fail or success. I have my data in a NSMutableData *data; object.
I get the data, but now want to see if it's a 1 or 0. How do I do this? Do I need to get the bytes?
Thanks
...
For iOS development, if you create and add a sub view at runtime, how would you allow it to communicate with the view controller? Since the sub view isn't instantiated within a nib, you can't use Interface Builder to drag a connection to an IBAction method on the controller. I can't see an obvious way to grab a handle to the controller f...
Following code works fine:
NSDictionary *item;
if([arrTesting count] >0 )
item = [arrTesting objectAtIndex:0];
// The text "article" is what I'm searching for to ensure it exists
if([item objectForKey:@"article"] != [NSNull null])
{
NSString *m...
I currently have a 'Topic' entity defined in my system as:
@interface Topic : NSManagedObject
{
}
@property (nonatomic, retain) NSString * path;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSNumber * topicID;
@property (nonatomic, retain) NSNumber * parent;
@end
I want to fetch a topic with a specif...
If I have an object created as autoreleased, is there a way that I can mark it is essentially "not autoreleased"?
I feel that I have heard calling [object retain] will do what I am looking for but I am not sure.
...
I took the time to set up some Unit Tests and set up the targets in XCode, etc., and they're pretty useful for a few classes. However:
I want to test small UI pieces for which I don't want to launch the entire application. There is no concept of pass/fail: I need to "see" the pieces, and I can make dummy instances of all the relevant cl...
I developed a mobile website to be accessable by mobile devices, mainly iPhone and Android devices. And, to select the type of search to perform, I created 4 radio buttons.
But, on iPhone when the user makes the first choice and try to choose another type of search, the radio button clicked just don't get selected! It's looks like a bug ...
I have declared some string properties on the app delegate for the purpose of global manipulation.
The trouble is the values that are written are not the same values that are being read. When I put debugging messages to print the values, it is familiar data. It almost looks like its being cached.
Code for declaration:
//globals
...
Hi,
I am not able to find out why am I getting unnecessary warnings like:
"Method 'someMethod' not found"? Though at run time it is executing this method and I am getting the desired results. FYI... The called method resides in separate class which i have already imported in my class.
...
I have a NSDictionary collection whose key is a unique id and value is an array with two different objects (FruitClass, ProductClass) and I would like to group the collection such that it's sorted first by ProductClass.productName and then by FruitClass.itemName.
So the final list would look something like:
{apple, butter}
{apple, pie...
After I use Build and Archive to produce an Ad Hoc Distribution build, the Organizer appears. When I select the build, and press Share Application, the dialog pops up, but thereafter none of the buttons work. I can't Distribute For Enterprise, Save To Disk or Email. I press the buttons and they just pop right back up.
There are no error...