How can I add UISwitch(toggle switch) to UIToolBar without using InterfaceBuilder ?
It is not a system item, so I could not use
UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
target:self
...
At one point, I modified one piece of code in one of my .m files. The strange thing is that the program runs as if I didn't modify anything. I have deleted some NSLog - lines of code but the console still shows their results (so they - some how- work!!) then I noticed that all I add in this m file has no effect, the executed code being t...
Just curious, given:
unsigned int pulseCounter_001;
@property(nonatomic, assign)unsigned int pulseCounter_001;
@synthesize pulseCounter_001;
Is there any reason to use:
[self setPulseCounter_001:0];
Or just use:
pulseCounter_001 = 0;
Style wise I think the latter says "we are setting an int" better, just curious as to any overhe...
I have a UISplitView-based app with a UIWebVIew in the Detail View. I want to make it change its content when user chooses a new row in the table in Root View. I tried like this in DetailViewController:
- (void)setDetailItem:(id)newDetailItem {
extern NSString *rowname;
if (detailItem != newDetailItem) {
[detailItem release];
de...
I have been trying to set a UIImageView background color (see below) in awakeFromNib
[imageView setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1.0]];
When it did not work, I realised that its probably because the view has not loaded yet and I should move the color change to viewDidLoad.
Can I just verify that I have ...
I have an iPad app in which I'm setting the shadow color of a UILabel in a UIView's initWithFrame: method. When I use the following syntax:
m_label.shadowColor = [UIColor colorWithWhite:1.0 alpha:0.5];
I get this compiler error:
Expected identifier before '[' token
However, when I use the following syntax:
[m_label setShadowColor:[...
Hey guys,
I'm observing UINavigationControllerWillShowViewControllerNotification on UINavigationController to keep track when the current view controller has been popped, as suggested on this post.
There's literally no reference anywhere for that notification and a Google search will link me only to that post.
Does it mean this is a p...
Our application lets users call phone numbers. Users would like to be able to block their caller ID.
On other platforms, we let the user specify a custom dialing prefix. For instance, on my cell provider it's #31#.
I've tried two approaches so far.
First:
id url = [NSURL URLWithString: @"tel:#31#0000000"]
// produces nil
Second:
i...
I have enabled NSZombie's and I am getting the following message in my console when I am running my application:
*** -[UIViewAnimationState release]: message sent to deallocated instance 0xf96d7e0
Here is the method that is performing the animation
-(void)loadAvatar:(STObject*)st
{
NSAutoreleasePool * pool = [[NSAutoreleasePo...
I have some text in a UITextView. I don't want it to be selectable. How can I do this?
...
I want to attach a video and send email from my application.
I downloaded apples example code MailComposer. I compiled it. I did not get any errors or warnings.
I sent the mail to my mail id. But, I could not see any mail in my inbox. I am working on simulator.
I did not set any senders email id in simulator.
How can I know whether ...
Hi,
I am getting exception by deleting a row from the table view.
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
if(isEdit == YES)
{
if([editObject.contactList count]>0)
{
return [editObject.contactList count]+1;
}
else
{
return 1;
}
...
I have saved video in to the photo library.
-(void)exportVideo:(id)sender
{
NSString *path = [DOCUMENTS_FOLDER stringByAppendingString:@"/air.mp4"];
NSLog(@"Path:%@", path);
NSLog(@"Export Button CLicked");
UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError: contextInfo:), nil);
}...
Looking through a Window based application ive used to experiment with as a way of getting my head around core data, ive noticed that the appdelegate has the following code
myAppDelegate.h
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface myAppDelegate : NSObject <UIApplicationDelegate> {
NSManagedObjectModel *managed...
Hello guys,
How exactly filling bugs for the iPhone SDK with Apple works?
I've always seen people mentioning we should fill bugs and duplicates is their way of measuring priority, but it's not clear to me:
How to actually fill the bug;
How to flag someone else's bug as a duplicate, and;
What do I need to tell people I've filled that ...
Like the title says, I want to parse XML in my iPhone application, but there is no NSXMLParserDelegate protocol like there is in the System Foundation framework.
Can I just add a reference to the /System/Library/Frameworks/Foundation.framework in my iPhone application?
...
This is a follow on from another question regarding why I could not set UIControls in awakeFromNib. The answer to that is that as you can see below the controls are nil in the awakeFromNib, although they are initialised to the correct objects by the time we get to viewDidLoad. I setup the view the same as I always do, should I be doing s...
Hi
in my program i have to unzip downloaded file ... i read libz.dylib is used for that but i didn't find any documentation or examples how to do that..?
any one know this...
Thanks in advance....
...
I have stored the videos in the documents folder. the path is
/Users/sridhar/Library/Application Support/iPhone Simulator/User/Applications/EC177E77-8665-485C-93DE-62350FA6D0E7/Documents/air.mp4
I want to delete the video . How can I do it programmatically.
...
I have compiled my iPhone app with setting (Device, Release).
I install it on the test machine and it runs with no problem.
Here's the problem. The app is linked to a C++ library. The compilation on the simulator has no errors. However the device compilation produces 568 errors, mostly about different visibilities w.r.t AppDelegate.o.
...