I've been using -performSelectorInBackground in many of my apps, sort of oblivious to -detachNewThreadSelector. Now I am wondering what the differences are between the two. Are they pretty much interchangeable, or are there differences and places where one is superior to the other? Thanks!
...
I have a uiwebview in my iphone application. I want to show a loading gif image which is located in my application , until complete contents of my uiwebview loads . Can anybody suggest a method ?
...
I am developing an app that use UIWebView to display a list of videos from youtube.
For playing the videos I use the youtube embed feature and it open the youtube application when the user clicks the video thumbnail - works great.
I want the same functionality to be executed when I click a "Watch Now" button that will be located near ...
I want my app to read a XML via internet.
Also I want to keep the previously download xml so next time I may not need to download again until certain hours is passed or whatever period of time according to settings.
Do you recommend me to download it first and store locally before process it? Or should I process it while downloading (...
Hello All.
This is my app im working on. http://twitpic.com/yrzpo and it has a modal view that i want to let the user app things to the routines list. http://twitpic.com/yrzs3
The table view on the first page, has a data source of a NSMutableArray. On the second page, i would like to add to that array, by typing in the top text field...
I have the Array defined below.
NSMutableArray *tempMPArray = [NSMutableArray arrayWithCapacity:16];
for (int i=0; i < chapters; i++)
{
[tempMPArray addObject:[NSNull null]];
}
Every time I use it as a one of the objects of a dictionary below to register default values it crashes with EXC_BAD_ACCESS.
[[NSUserDefaults standardUse...
I have created a settings.bundle and the settings are visible when I debug it on my iPhone. But when I upload it to a repository the users can not see the settings in the Settings.app.
So how do I make the settings appear in Settings.app on jailbroken devices? Is there something I can put in the preinst-script to fix this?
...
Hi all,
I am a complete newbie to mac/objective-c. My question is: I wonder if it's possible to bind a UILabel text to a variable, for not having to manually set the text when value change.
I explain it better, on mac os, when I open a new finder window and delete a file, then the global free space in the taskbar is changing. And that ...
Hi all. I'm using a UITableViewCellStyleValue2 cell in my UITableView in my app and I want the left column (the blue text - self.textField) to be much narrower than the default. I've tried setting the self.textField.bounds after creating the cell but this doesn't seem to work - looking in the debugger it appears the bounds haven't been ...
I am storing values of ON/OFF of switch view in the object. For the second time when we go to that view controller the switch view is always in the off state. But the value in the object is 1(ON).For the second time when we go to next controller, It should be ON state.
...
hi , everyone..
i am working on application which has the same user interface as Iphone Sms Application ,
i want to make a "To" text field to add multiple contacts from address book .
problem is that , how can i make the blue bubble in text after selecting the contact from address book ..
and also i want to make the msg text field wit...
I have read many topics about UITableViews not refreshing on iPhone, but couldn't find anything matching my situation, so I'm asking for help.
In my class, which extends UIViewController, I have a TableView and an 'ElementList' (which is a wrapper for NSMutableArray) used as data source.
A separate thread adds a new Element to the arra...
Hi
I hope this falls within the "programming question" category.
Im all lightheaded from Googling (and reading every post in here on the subject) on the subject "Computer Vision", but Im getting more confused than enlightened.
I have 6 abstract shapes printed on a piece of paper and I would like to have the camera on the iPhone identi...
I'm using the following function:
CGSize s= [string drawInRect:CGRectMake(0, 0, w, h) withFont:font lineBreakMode:UILineBreakModeWordWrap alignment:UITextAlignmentCenter];
string is a NSString and when this method is called - the iPhone is hangs for some time.
I've set good values for the parameters.
For a test, I wrote a loop with 99...
how to use specific encoding on NSXMLParser ?
It default on utf-8 ,I want to use on tis-620
any idea?
...
Hi,
My problem is that i want to replace the camera view with my own view that will capture the image and then again get the same controls of iPhone camera after capturing the image ie.
'Retake' and 'use' will appear.
please reply me
...
I'm reading XML data and creating objects, but I need some of my object variables to be floats. And with the - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string it obviously becomes a string and my float variables will be set to 0.000000.
In the - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementN...
I want to place an annotation on the Map view from the address typed in a text field using the MapKit instead of longitude and latitude in iphone.Whether is it possible to do that?If yes,how. Please provide some sample code to do this. Thanx in advance
...
hi,
i am accumulating data from NSMutableDictionary to NSMutabledata like
NSMutableData *data = [receivedData objectForKey:@"tag1"];
and also
data = [receivedData objectForKey:@"tag2"];
after this one , how can i get data for @"tag2" only from NSMutableData?
NSMutableData tag2Data = [Data forKey:@"tag2"];
is not work...
@interface UICustomSwitch : UISwitch
{
}
-(void)setLeftLabelText:(NSString *)labelText;
-(void)setRightLabelText:(NSString *)labelText;
@end
@implementation UICustomSwitch
-(UIView *)slider
{
return [[self subviews ] lastObject];
}
-(UIView *)textHolder
{
return [[[self slider] subviews]objectAtIndex:2];
}
-(UILabel *)leftLabel...