I have a navigation based application which has multiple views (Say root <- A <- B <- C). What I want to do is that when users pop out of the top most view (C) to view B, automatically execute some checks in view B and if met, go to view A.
What I did is the following:
In class B which is a UITableViewController
- (void)viewDidAppear:...
Hi all together,
I'm pretty new to iphone development.
Anyhow I've searched now for 1,5 hrs to find a possibility/tutorial or whatsoever to add a UISearchBar (it's already added to the RootViewController.XIB).
There are a lot of Tutos describing how to connect an Array to a UISearchBar.
What I would like to do is connect my already w...
I have data stored in a sqlite3 database and have several places that I read and write data to and from the database. The problem I am running into is that if the SQL statement gets to be very long the sqlite3_prepare_v2 method returns an error.
This code works:
NSString *strSQL = @"UPDATE commandList SET displayName=?, type=?, formula...
hi,
I submitted my app to iTunesConnect and Apple give me back the following crash report:
Thread 2 Crashed:
0 libobjc.A.dylib 0x00003eb8 objc_msgSend + 16
1 Foundation 0x0004c3aa _NSDescriptionWithLocaleFunc + 24
2 CoreFoundation 0x0003d52e _CFStringAppendFormatAndArgumentsAu...
I have this snippet of objective c code:
UIImage *image = [ [UIImage alloc] initWithContentsOfFile:fileName];
fileName is set to "file1.jpg"
When I run the code, however, image is set to nil.
I know the file does exist I am guessing it has something to do with the path.
What path should I be using?
...
So I'm setting UILabel.shadowColor to a non-gray color, but the shadow always appears as opaque 50% gray (or so). For example, I tried setting the shadow to red and I still see gray. Has anyone else seen this? (This is the UILabel inside a custom nav bar back button)
.n
...
I've placed a button on toolbar, but how do I change it's title?
...
I am trying to find the full path for a file called 'file1.jpg'
I have verified that it is in the app bundle and yet when I run this code:
NSBundle* myBundle = [NSBundle mainBundle];
NSString* path = [myBundle pathForResource:@"file1" ofType:@"jpg"];
'path' doesn't have the path/file i'm expecting.
This is code directly from the ...
I've only seen it in a VERY few iPhone apps... but it looks like a picker that rotates left/right (instead of top/bottom).
They usually put it on 1 line of a tableView... to allow the user to quickly pick between a small number of choices (like 3-10).
How is that coded?
...
I am building an RSS reader with a GUI very similar to the built-in mail app. It uses Core Data to store the information once it is downloaded. When a story is downloaded, it has a blue dot to indicate it is new. Once I go back to the main page after reading a story the dot should be gone. It stays there until I scroll or relaunch the ap...
I'm trying to create a QR code so that iPhone users can import my address book information. I'm doing this by:
putting a VCF (vcard) file on my web server
creating a QR image that contains this URL.
This is working on my desktop browser (it opens the vcard with the address book app).
On the iPhone, the QR reader successfully te...
i am new in iphone application Development and i want to put search bar in my application so please give me some suggestion how to implement search bar.
...
I am trying to place a series of sprites on a layer, but since I want to move all of the sprites as a group, I have created a CocosNode, set it to the same size as the screen and position it in the center of the screen, then add the Sprites to that node (lightNode) instead of adding them to the layer.
What I am seeing is that the sprit...
Hi all,
I am using core-plot lib to draw bar charts in my app like this
My problem is that i want the enabling of grapgh movement only in horizontal direction so that I can see the records for a long period of time, But the problem is that i just wnt to keep the y axis fixed to its place,
How can i do this?
Waiting for help....
...
How to iimplement uiprogressview for one minute using NStimer?
...
Hi all,
I am working on an image upload from iphone to an C# web service. Here is the iPhone code
NSString *soapMessage=[NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:so...
When I try to pop a view controller, it doesnt update info for the previous view. Example: I have a cell that displays text in a label in View1. When you click on the cell it goes to View2 (for example) When I choose an option in View2, popViewControllerAnimated is used to go back to View1, however, I want the label to now be updated wit...
Here is what I try to do:
In a simple view-based project, I added a variable in appDelegate
NSObject* gObj;
@property(noatomic,retain) NSObject* gObj;
@synthesize gObj;
then in the testviewController.m viewDidLoad() I added such test code:
testAppDelegate* delegate=[[UIApplication sharedApplication] delegate];
NSObject* p1=[NSObj...
Is there any way to recieve a notification when a UISearchBar is finished (e.g Cancel button clicked or otherwise lost focus.
We don't have access to the UITextField inside, or I could attach an observer to it.
I can be notified when the keyboardWillHide, but I've got another text field, so it could be either one. And it becomes inacti...
Hi all
I don't want include cc or bcc fields in mail composer sheet ..
Can anybody knows how can I do so ?
...