I'm running the following example code from Apple -
NSString *requestURL = [[NSString alloc] initWithString:@"http://google.com/"];
NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:requestURL] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
NSURLConnectio...
how to play audio continuously using multitasking even when user has pressed home button??
...
Hello, I wrote a code that utilizes the MFMAilComposibleViewController to harness in-app emails. I specified the delegate as so under, but my delegate method isn't getting called. This is the first time I'm getting this type of error; I normally develop under the iPhone but for a client I need to develop under an iPad.
MFMailComposeView...
is there any constant or #pragma to get the time and date, when the programm was beeing compiled to get a kind of an automatic version-info ?
...
I'm developing an application in which I access data from the server through php.
I use NSURLConnection for that. The data is fetched successfully, but there is some delay.
I'll describe in detail.
I want this:
When the user clicks the button, then send a request automatically to the server and receive the response from the server and...
Hi All
Where is the best way for a beginner for iphone application to start learning objective c
in step by step site or way to start developing for iphone apps
Many thanks for all
...
hi all,
I am new to objective-c so i do not know how to create(write) any xml file in objective-c.I want to create(write) an dynamic xml file....
thanks in advance
...
Hi Guys,
While editing the text in text view the cursur is coming only to the half of the cell when we press enter button to edit then the cusur is not coming upto the end of the cell
I have given the height as 170 and cell height is 190. It looks perfect in User Interface but when we editing it i can't come upto end of the cell.
If ...
Hello guys, I have a little problem; I have this protocol defined as so below:
@protocol someProtocol <NSObject>
- (void) changedStoryForIndexPath: (NSIndexPath *) indexPath;
@end
I have it defined in a file named "ListViewController.h", logically I have to import the header in another file like: #import "ListViewController.h" then ...
I have this bit of code:
CFDictionaryRef lDictionary = AACreateDictionaryForFile(path);
if (lDictionary) {
printf("retct before: %ld\n", CFGetRetainCount(lDictionary));
CFMakeCollectable(lDictionary);
printf("retct after: %ld\n", CFGetRetainCount(lDictionary));
return TRUE;
} else {
return FALSE;
}
Su...
Hi everyone!
I use MPMoviePlayerController to play some Video and Audio streams on iPhone.
Sometimes some steams aren't available, so on iPhone OS 3.1 I get 4 "This movie could not be played" alerts, even if I catch all the notifications.
Can anyone recommend me how to prevent this from happening?
Thanks in advance!
...
I want a behavior of the UITableView like with userInteractionEnabled == NO (The table should just stop being moved by the user). But I want to be able to activate it while the user is moving the UITableView
If I just set
[self.tableView setUserInteractionEnabled:NO];
This behavior will activate after the user ceases to touch.
Any...
Hello,
in iPhone I do UIViewController viewDidLoad and write some setup code to setup the view.
But how can I do that in NSViewController?
I've tried with loadView but it doesn't work...
Maybe I do something wrong I don't know...
PS: I've just started with OSX / iOS programming, so sorry if I ask something stupid :(
...
I have a UITableView which is a subview of a UIView, then that UIView is a subview of a UIScrollView. How do I detect the touches that should scroll the UITableView?
The UITableView can get item selection events (a cell in the table is selected/tapped) just fine, except that you have to hold down on the cell before it fires. But I can't...
Hi, I use Matt Galagher's AudioStreamer http://github.com/mattgallagher/AudioStreamer/ It works fine, however how to make in work at background on IPhone OS4?
...
Hi,
Please have a look on following code :------- .h
@interface BankAccount : NSObject<NSCopying>
{
double accountBalance;
long accountNumber;
NSString *CustomerName;
NSString *AccountType;
}
-(void) setAccount: (long) y andBalance: (double) x;
-(void) setCustomerName: (NSString*) name andAccountType: (NSString*) type;...
Hi friends...
i want to retain the xml value for another controller.and wanna to display the list on Picker view.then i like to choose one of them and call the another controller.
How can i retain the xml value of previous controller class.
i need the help.
...
An example of how to programmatically create an iCAL event in the default calendar, using Objective-C.
The code checks if the event already exists, and sets the button state accordingly.
I hope this example is useful.
-(void)initCalendar {
// An array of 1 dictionary object, containing START and END values.
NSMutableArray* pvDict =...
I would like to get the percent encoded string for these specific letters, how to do that in objective-c?
Reserved characters after percent-encoding
! * ' ( ) ; : @ & = + $ , / ? # [ ]
%21 %2A %27 %28 %29 %3B %3A %40 %26 %3D %2B %24 %2C %2F %3F %23 %5B %5D
Percent-encoding wiki
Please test with this ...
I know there is a seemingly exact duplicate of this question here: http://stackoverflow.com/questions/573958/iphone-sdk-what-is-the-difference-between-loadview-and-viewdidload
However, I have read that question and still it was not fully answered.
I'm not using IB as the UI is dynamic.
So should I create the self.view and then add the ...