I have built a new view with an activity indicator attached, loading this nib, seems to be working fine on another view:
- (void)viewDidLoad {
[super viewDidLoad];
ProgressViewController *progresssView = [[ProgressViewController alloc] initWithNibName:@"ProgressViewController" bundle:nil];
[self.view addSubview:progresssVie...
I have an OS 4 app that was completely compatible with 3.x up until I added eventkit. Is there a way I can omit this feature if they are on a 3.x device? I have
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
...code
#endif
around my stuff but it seems to be failing on initial launch and I am thinking due to the linking of the EventKit....
Does the the iPhone SDK allow fork() and pipe(), the traditional unix functions? I can't seem to make them working.
Edit
Problem solved. Here, I offer a solution to anybody who encounters problems similar to me. I was inspiried by the answers in this thread.
In iPhone, there is no way to fork a process. However, it's not impossible to...
Hi all,
I am new to iPhone developement.
Here is my question.
I would like to do a 'device texting capability' check on my iPhone simulator before I deploy it to my phone. This is the code I wrote in the .m file.
This is the function which is called when my SMS button is triggered.
Class messageClass = (NSClassFromString(@"MFMessa...
Hello,
I have a property in my UIView class, something like that:
myView.h
@ interface MyView: UIView {
id refView;
}
@property (nonatomic, retain) id refView;
MyView.m
@synthesis refView;
Then in another class can I set the refView property of MyView something like that:
MyViewController.h
@interface MyViewController: UIVi...
On click event of a button
[mybutton addTarget:self action:@selector(captureView)
forControlEvents:UIControlEventTouchUpInside];
- (void)captureView {
UIGraphicsBeginImageContext(CGSizeMake(320,480));
CGContextRef context = UIGraphicsGetCurrentContext();
[self.view.layer renderInContext:context];
UIImage *screenS...
So I know iOS apps run in a sandbox and all, but I thought I remembered Apple mentioning a way for apps to write to and read from a common file share, so that you can then deal with these files on your computer when you plug you iPhone in (mount the drive). I think this was in the context on the iPad, but I'm not sure.
Anybody know anyt...
I recently upgraded my iPhone app to a universal binary. I have 2 view controllers and nibs, one for the iPhone and one iPad. I scaled up the iPad UI and created the exact same connections in IB.
However, I get this error:
-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "HomeScreen_iPad" nib but the view outlet was not se...
Hi, this is my first question here, so excuse me if I made any mistakes!
In my iPhone project I have a method running in a thread which takes a long time to execute (that's why it runs in a thread).
[NSThread detachNewThreadSelector:@selector(methodToBeCalledInAThread) toTarget:self withObject:nil];
// ...
-(void)methodToBeCalledInAT...
I have been reading all the Apple documentation on how to handle various events with their touch screens. My problem is this:
I have an iframe in my webpage. Occasionally it is overfilled (this part is handle properly with the overflow attribute) and I cannot scroll the frame. The scroll bar pops up, but a swipe scrolls down the whole w...
i have htmlString of string type.i want to append the view port code to this variable.How to do this?is it possible to do this?
...
I have iPhone4 icons, which are terminated with @2x.png
My problem is that when I try to add them to svn with svn add path/[email protected] I get the error:
svn: warning: 'path/myIcon' not found
I suppose that svn or my system do not support the "@" in the path..
What can I do?
I am running Mac OS X 10.6.4 and tried to add it direct...
I want to apply my customized font in iPhone app. So I did as these steps,
add customized.ttf into Xcode project/Resources
add "Fonts provided by application" in plist with a pair of key/value like this - item 0/customized.ttf
update font of label's text like this - lable.font = [UIFont fontWithName:@"customized" size:17];
But, it do...
I am a bit of a iPhone/Mac OS newb.
When I look at a backtrace in the debugger and UIKit or other Apple Libraries are on the call stack I can't see their function arguments because of missing debug symbols.
Does Apple Ship debugging symbols for the iPhone Simulator libraries like UIKit?
Thanks.
...
How can I access (to change the imageView.image) the next cell of my UITableView given that I already have:
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
...
I have a tab bar application and I want to display those views that most part of apps have, with the name of the company or the name of the app.
I've created the follow viewController
Introduction *introducao = [[Introduction alloc] initWithNibName:@"Introduction" bundle:nil];
I don't know where exactly should I insert the code to s...
I create tow or more custom cell
each cell has a switch inside
How can I know which switch in the row I click
ex.I click the switch in row 3,than It will return indexPath.row = 3
and also the switch status is on or off ?
which void I should put in ?
I know there is a way can get indexpath return by:
- (void)tableView:(UITableView ...
When I connect hotspot using Wi-Fi Networks in iPhone settings, iPhone automatically pop up the log in page to enter the ID/PW. I think the setting using a browser. In a browser, is it using the below code from NSURLConnectionDelegate?
(BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtection...
I am trying to update my UITableView and the following implementation is not working. I'm wondering if I am doing something wrong?
NSDictionary *newContact = [[NSDictionary alloc] initWithObjects:[NSArray arrayWithObjects:@"Name", @"Phone", nil] forKeys: [NSArray arrayWithObjects:strName, strPhone, nil]];
[arrQuickDialContacts addObje...
can someone tell me what the difference is between [(id)Object class] and object_getClassName(id Object) and when and why you would prefer one over the other?
...