iphone

[iPhone app] Inserting special char un NSString for URL use

Hi, I'm using HTTP connection to share data with my JSON server. I use URLs like "MyServlet?param1=value1" and so on... I'm now facing a problem with one of my servlet (I can't change it because some other views are using it) : The servlet is working with a syntax including those symbols "{" and "}". The exact syntax is {(value1_va...

JQTouch transition problem

I have a problem with the jqtouch bottom toolbar. Its a stationary bottom toolbar that is implemented with the iScroll plugin for jqtouch. When I want to switch between a page with a "right" slide transition effect I want to exclude the bottombar from also using the transition effect. The reason for this is because it looks weird when ...

Passing Object value to UIView

See the code here @interface StaticView : UIView { Properties *prop; } @property (retain) Properties *prop; @end and i am attaching this view via code [super viewDidLoad]; StaticView *sView = [[StaticView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; sView.prop.glowIntensity = 0.85f; [self.view addSubview:sView]; but i...

Plist information in iphone project

what are the information to be shown on Plist in iphone Thanks in advance ...

changing text color of uitabbaritem

Hi, can anyone help me in this weird problem is there anyways to change the text color of uitabbar item from default gray to white and selected color to blue. ...

Getting the substring from a certain character in NSString

If I have an NSString that is initially: "ABCDE*FGHI" How do I make it turn into "FGHI" In other words, everything from the asterisk onwards is kept. Likewise, how would I turn it into: "ABCDE" (everything up to the asterisk is kept) Thanks ...

Adding advertising to iPhone Application

Hi all, I wanted to integrate advertising platform into my iPhone App and I was wondering which one is better to use Admob or iAd and why? Thanks in advance, Sarah ...

iPhone - adding views and landscape orientation

I got a problem with Cocoa touch and landscape orientation. I instantiate my view from a .xib; i added in my view controller - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return interfaceOrientation == UIInterfaceOrientationLandscapeRight; } to only allow landscape orientation. Thi...

Custom drawing on top of a UITableView

Hi, I have some problems drawing some custom content over a UITableView. What I did was subclass UITableView and overwrite the -(void)drawRect method something like this: - (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); [super drawRect:rect]; CGContextSetRGBFillColor(ctx, 255, 0, 0, 1.0f...

testing an in app purchase??

i developed a application with in app purchases..when user buys the subscription it gets stored on my server..after testing it few times i deleted the data from server to test it again but when i buy it the sandbox environment says u you already purchased this.TAP OK to download it again for free also i have used this test account ...

Core Data Relationship problem

I have a very simple model with two objects: Name and Category. One Name can be in many Categories (it's one way relationship). I'm trying to create 8 Categories every with 8 Names. Example code: NSMutableArray *localArray = [NSMutableArray arrayWithObjects: [NSMutableDictionary dictionaryWithOb...

Dynamically load nib for iPhone/iPad within view controller

Hello I have converted an iPhone application using the wizard like thing in XCode into a universal app. It builds fine but obviously looks a bit rubbish in some areas :) I need to load nibs according to which device is being used. I dont wish to create my view controllers using initWithNib as I already have code to create the control...

Remove clear button (grey x) to the right of UISearchBar when cancel button tapped

Right, to begin my question, here's some screenies of the problem already solved by the Spotify app: Spotify's Step 1: Standard UISearchBar not in editing mode. Spotify's Step 2: UISearchBar now in editing mode. Search term entered. Cancel button slides in from the right, and the clear button (grey x) appears. Spotify's Step 3: Ca...

How to get the default position and font of UITableViewCell, using it in a custom cell

I'm trying to write an app which contains a table view with three cell, one custom cells and two "standard" cells I have created a "custom cell" to be able to view a picture together with a subtitle in it. I would like to have the same look of the cell as a standard "UITableViewCell" but cannot figure out how to get the default position...

UITabBarContrtoller achieve from a different class in iPhone

Hi! I have the following problem: There is a class that includes five tabs in the following way: mainMenuClient.h #import <UIKit/UIKit.h> @interface MainMenuClient : UIViewController { UITabBarController *tabBarController; } @property (nonatomic, retain) UITabBarController *tabBarController; @end mainMenuClient.m -(void)viewDidLo...

iphone initializing tab bar controller view programatically

I want to initialize my tab bar controller programatically, but I just get a blank screen with the code I have. I tried to imitate TheElements sample app, and stuff seems comparable going line-by-line, but obviously something's wrong. Any suggestions? Thanks... In main.m: #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { ...

Binding Json data to a scroll view

Hi, I am retrieving Json data from url. There is a lot of text in the url which is to be binded to the Scroll view. Can anyone plz suggest me how to do it. I have no problems in retrieving Json data . I have included a scroll view on the main view. I have to just bind the data to the pre defined scroll view... ...

How to reference THE UIWindow from sub UIViewControllers?

I am trying to add another subview programmatically based on some event (user taps a button, for instance). My problem is that I am having problems referencing the (one and only) instance of UIWindow. I reach it from my appDelegate, because the MainWindow.xib and the appDelegate have been wired up. But I cannot reach the UIWIndow from a...

Which class will be instantiated

Say I have 2 subclasses from UIViewController, class A and class B. In Main nib file an object is representing class A and it is set to load file from Secondary nib file. The owner of Secondary nib is of class B. The question is - from which class an object in Main nib file will be instanciated once the nib files unarchived in the memor...

How to achieve UIButton / UILabel 'padding' in iPhone app

Hi, I've got various views in my iPhone application that require padding e.g a custom UIButton with text aligned left, and a UILabel with a background colour. This may be a really stupid question, but how can I apply 'padding' to move the text off the left hand edge? I've tired using bounds etc without any success. I know I could cre...