iphone

Background image for MoreNavigationController

I'd like to place an image behind the tableView in my UITabBarController moreNavigationController. I have tried inserting a subview like so when first setting up the TabBar: UIImageView* imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background3.png"]]; [self.tabBarController.moreNavigationController.topViewControl...

Pressing Cancel button doesn't retract

Hi there, i implement an actionsheet, when press "ok" button, do these, press "cancel" go back. the "ok" button is working fine, but when i press the "cancel" button, nothing happens, it doesnt retract or do anything, just hang at the actionsheet view. below is my code: create button at nav bar: UIBarButtonItem *clearButton = [[[UI...

how to call class from pone class to another class

hi i am new to iphone. what i am doing is creating two classes named as classone,classtwo. now what i need is i have to call calsstwo from classone. I already import classtwo in classone. pls post some code thank u. ...

How to add observer on a UISlider

Any idea how can i add my controller class as a observer for my View class' slider? I am trying to achieve this via Observer way: Inside my controller's viewDidLoad method I am calling [self addObserver:myView forKeyPath:@"myView.mySlider.value" options:NSKeyValueObservingOptionNew context:NULL]; and in the same controller file i am...

Read xml from NS

I create NSURLConnection to send an request like "http://www.mysiteabc.com/[email protected]&amp;password=123321" and recives an xml like <response> TOKEN=abcdef </response> in NSData. Anybody can tell me how to read TOKEN from NSData return by NSConection. ...

Using CATransition's In Three20?

I am looking to implement CATransitions within TTNavigator, I know the method openURL can take a UIViewAnimationTransition but that only gives me flipping and curling animations, but with CATransition I have access to another 8, of which kCATransitionFromRight, kCATransitionFromLeft, kCATransitionFromTop, kCATransitionFromBottom are the ...

How to build full Core-Plot with iphone project?

Hello everyone, Currently I completed my project using with CorePlot. But I have problem, when I copy my project to another folder, prepare to build before distribution, I have one problem: CorePlot-CocoaTouch.h: No such file or directory I did my project import Core-Plot like the way with this link: http://www.switchonthecode.co...

Iphone TextField.text

Hey, i have this code in my app where i put the text field text in my NSString property. iname = textField.text; after that at some point im doing this to make sure that the string is not empty [iname isEqualToString:@""] the problem is that if the textfield contain one word without space it works great if there is space it ...

Is it possible to use .NET session in IPhone native app?

Hi all, I'm writing a .NET(3.5) web service for an IPhone native app in which I need to manage users' sessions. Question is - can I just add the [WebMethod (EnableSession = true)] attribute to my web services, and the native app (which I'm not the one who's writing and hence the ignorance) would be able to use, or should I write an impl...

Check for private API "usage" yourself?

So, we all know Apple forbids using private or undocumented APIs in iOS apps. I have no problem with this, as there are sound technical reasons for why this is a good idea. However, twice now I've had an app rejected for using private APIs, when this was not actually the case. It's not difficult -- the private APIs include symbols like c...

building an echo sound application with iPhone

Hello, I would like to build an application which just echoes back the input given by the user. It simply talks back what is being recorded but at the same time. (out put the recording as soon as it is got). I have tried to look into the posts but there was no solution. I am using audiosessions and tried to follow this link http://blog.e...

Testing view helpers

I'm currently working on a Rails plugin used for generating iPhone specific HTML meta-tags. I'm trying to use ActionView::TestCase for unit tests but keep getting the same error. See file contents and error below. Any ideas or help would be much appreciated. test_helper.rb require 'rubygems' require 'test/unit' require 'active_support'...

using coverFlow in the music application

hey gays I have create the music application .But now I want to implement the coverflow in my application .And get code for coverFlow but I have problem with that .I want When ever I click on cover flow image it must flip and the particular song(uiclass ) must start or come on the screen. it like the When tapped, albums flip over just...

How do blocks differ from normal methods and functions in Objective-C?

What is the advantage of using blocks over normal methods and functions in Objective-C? I've read the documentation, but I can't find specific uses of blocks instead of other language features. I'm sure that I've missed something, so could someone explain the advantages of blocks in a simpler way than the existing documentation? ...

iphone database problem

Iam making a tab-based application where in first tab i have a custom button. and in second tab i have a table view which loading database from sqlite. in that custom button selector i have called viewlo. whose body is like this: info *viewer=[[info alloc]init]; [[self navigationController] pushViewController:viewer animated:YES]; [...

Get Data from NSMutableData?

How can i get data from NSMutabledata which returned by NSConection? Anybody can help me :) Data's returned by NSConection like : TOKEN=abcdef ...

core data adding a new field to an existing sqlite table

I have an sqlite table that I'd like to add a new field to. Would I add the new field directly in sqlite or does the Core Data model change the sqlite table itself? I'm stuck for some reason right now w/ adding a new field to the db table. thanks for any help. ...

iphone - Sending SMS without quiting the application

In iPhone app Development, we can use "openURL" to send SMS. But the problem is that, the app quits and opens SMS application. How can I send 10 different customized SMS to 10 different phone numbers without quitting application? ...

iphone sdk: how to connect two UIViewController??

Hi, i've got a problem: lets say i have two view controllers, firstViewController and secondViewController. The firstViewController is supposed to present the secondViewController and i also want to access a bunch of methods and properties from the secondViewController through the firstViewController. I do this by simply using the imp...

escape character in cocoa

Hi i'm trying to give a request to the url in iphone sdk the http method is POST. The http body contains some escape characters NSString *requestMessage=[NSString stringWithString:@"?username/u001password/u001description"]; NSMutableURLRequest *url=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://welcome.com"]]; ...