I have an app in which i use an image picker control. What i have to do is, the user has to select an image, and the image should be sent to the server, from where i retrieve an id which i have to use further in the app. I have an image view to show the user which image he has selected. As my server requires image as a file, so i save it...
Okay, what I currently have is a TabBarController with five tabs. Each of these tabs are UINavigationControllers. Each of the Views associated with the tabs link to a XIB file that contains a View with a UIWebView. What I want to happen is when a link is clicked in the UIWebView a new navigation view (with a back button) is pushed ont...
I read the current location's latitude and longitude values and then pin that location in Iphone successfully. Now i want to read that place name using this latitude and longitude values. If anybody have any idea please help me.
Thanks.
I used the following code to read the find the current location..
- (void)mapView:(MKMapView *)ma...
I was trying to find a way to adjust my screen when keyboard slides up so that the text field being edited (UITextView in my case) slides up and stays in focus instead of getting hidden behind the keyboard.
I saw a few discussion on google groups mentioning - autoresizesForKeyboard -
http://groups.google.com/group/three20/browse_thread...
It's crazy, but I can't find it. The HIG seems to talk only about system icons like "favorites", "search", etc.
Is there a special document that talks about this? Also, how must these icons be called and where must they be added?
...
Hi
Could someone guide in what I need to do? I need to attach a pan gesture recognizer to an image which rotate clockwise and anticlockwise as we move.
Thanks
...
I have a couple of view controllers that I want all to share a header status bar. This header view shows status of certain things in my app. I used IB to lay out the contents of the header view in its own xib, then also used IB to layout the view controllers, adding a placeholder UIView element in the view controller's xibs for when I lo...
Hi dear friends
i have 495 cells and a textField for inserting number and selecting the row according to the cell number .
i have problem with this code :
int MAX_LENGTH = 495;
(MAX_LENGTH >[myTextField.text length]{
myTextField.text = @"ERORR";
and this :
for(int i = 0; i <[myTextField.text intValue]; i++) {
[myScroll...
I have some in a touch handler which responds to a tap on a view that I've drawn some attributed text in. through this, I've got to the point where I have a CTRunRef (and the associated line) as well as the number of glyphs in that run.
What I'm not able to figure out easily, is how I can take that run of glyphs and, given my attributed...
I have the following define'd constant set up.
#define EndDateNotSpecified "None"
But I can't seem to evaluate it, I've tried
if (btnEndDate.titleLabel.text != EndDateNotSpecified) {
and
if (btnEndDate.titleLabel.text isEqualToString:EndDateNotSpecified) {
I get compiler problems with each.
...
I have a UIProgressView added to self.view as subview. I have a UITableView with rows loaded.
I need image in every row but I don't want the app to wait for all of them, so I decide to run NSThread with loading images process. When I try to update progress of the UIProgressView from inside my thread - it doesn't get updated.
Do I need t...
Hi guys
In my iPhone app I'm loading images using this line of code:
UIImage *image = [UIImage imageWithData: [NSData dataWithContentsOfURL:url]];
How can I check if I have image loaded? I mean sometimes it doesn't give any error, but I have blank white space instead of image. I want to check if it was completely loaded and if not, t...
Hello,
When I tested my universal app on iPod Touch Gen 2, either as a debug version, or ad-hoc distribution, it works fine. However, the distribution version won't run on iPod Touch when I downloaded it from the App Store. Its configuration was duplicated from the ad-hoc config.
Any idea is appreciated! Thanks.
...
I have a parent class (A) that is UIViewController. Than i create class B that is subclass of class A. What happens is that i can't catch touch events in class B with methods like touchesBegan. But if i implement this methods in class A ... they get called.
@interface A:UIViewController
.....
@interface B:A
...
Hello,
general question here.
I have an iphone app that initially has a uitableviewcontroller (with search in order to query through a list of entities). In my case car information.
Upon selecting an entity, what i do now, is pushing the "genericcarinformation" view controller to the navigation controller. This is a uitableviewcontroll...
I have a unit test to test one of my model classes and I get the follow error when I try building unit test target:
"_OBJC_CLASS_$_NSMyClass", referenced from:
objc-class-ref-to-NSMyClass in LogicTests.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have setup my unit tests as Apple recommends i.e. separate targets.
D...
Hello and Thanks for your help in advance.
I am hooking up VC1 with plist properties to VC2 with its own set of plist properties at which the collected data will be used to calculate the weight of a given object. Present status is that VC1 is populating it view with its plist properties but as VC2 gets pushed, the view appears but proper...
I have various UIViewControllers that need data from web services. Is it best to create separate controller classes which the UIViewController's in turn call or keep the code inside the UIViewController?
The reason I ask is because with delegation you kind of have to leave some of the connection code in the calling class in this case t...
I create an IPhone application in XCode, and i build and run it Simulator. It executed successfully.
Then i connect my device, and then i clicked the Build and Run, the following error message displayed.
I inserted the provisional also.
How to solve the following error?
The Info.plist for my application specifies a minimum OS vers...
Hi.
In short I would like to call a method from a viewSwitchManager class that contains a method which would switch the current view on display to a different view.
-(void)replaceView:(UIView*)oldSubView withView:(UIView*)newSubView;
I am trying to implement the following:
In my project I have 10 views they all have their own .m and...