iphone

Sharing parameters between setting view and application view

Hi there, Simple question : I've got an iPhone app with 2 views with each a separated xib files. one view holds the settings of the app one view holds the app using the settings made in previous view. How should I implement the sharing of setup parameters between the 2 views ? should I manage those parameters in the app delegate ? ...

how to write the server side in php if i am using the json on client side of the iphone.

i want to make my server side in php. after writing the code in php can i directly use json to parse it of or something other required on the server side with php. can you give me some example of it, how to do this on server side if i want to use json of my client side. ...

Remove Custom UINavigationBar

Hi, I've customized my UINavigationBar with an image like that : @implementation UINavigationBar (CustomImage) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"NavigationBar.png"]; [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; } @end When I launch a video my custom ...

Cell contents changing for rows present outside the height of tableview(to see this cells, we shud scroll down)?

I have set the size of the tableView that I show as the popoverController as 4*rowheight. And I am using 12cells in the tableView. Each cell contains an image and a label. I can see all the cells by scrolling. Upto 5th cell its ok. After th2 5th cell, the label and the image that I am using in the first four cells are being repeated for ...

Drawing single pixel in Quartz

I have an array of CGPoints, and I'd like to fill the whole screen with colours, the colour of each pixel depending on the total distance to each of the points in the array. The natural way to do this is to, for each pixel, compute the total distance, and turn that into a colour. Questions follow: 1) How can I colour a single pixel in Q...

How can I add a link to an iPhone native app from website IF POSSIBLE

I have a link to a Facebook page from a website. I know I can use the URL scheme href="fb://" to open up the Facebook application from within an iPhone, but if the iPhone user does not have the native application installed, an ugly error message pops up. I would rather just send this user to the Facebook website. There's gotta be a way ...

How do I make UITableViewCell's ImageView a fixed size even when the image is smaller.

I have a bunch of images I am using for cell's image views, they are all no bigger than 50x50. e.g. 40x50, 50x32, 20x37 ..... When I load the table view, the text doesn't line up because the width of the images varies. Also I would like small images to appear in the centre as opposed to on the left. Here is the code I am trying ins...

play online video on iphone

hi........ i want to play video without storing on my iphone device. so how can i establish the connection.please help me ..what are the step to be done for playing the video.. Thanks in advance ...

UITableView setting standalone delegate object?

I have setup a sample application using a UITableView. Initially I did this by conforming my controller to <UITableViewDelegate> and <UITableViewDataSource>, added a tableView in IB and connected "datasource" & "delegate" to Files Owner. It all works so thats good. What I have been trying out is creating my own class for the delegate. I...

How to fetch managed objects sorted by calculated value

Hello, I'm working on the app that uses CoreData. There is location entity that holds latitude and longitude values. I'd like to fetch those entities sorted by distance to the user's location. I tried to set sort descriptor to distance formula sqrt ((x1 - x2)^2 + (y1 - y2)^2) but it fails with exception "... keypath ... not found in ent...

copied the reachability-test from apple, but the linker gives a failure

i have tried to use the reachability-project published by apple to detect a reachability in an own example. i copied the most initialization, but i get this failure in the linker: Ld build/switchViews.build/Debug-iphoneos/test.build/Objects-normal/armv6/test normal armv6 cd /Users/uid04100/Documents/TEST setenv IPHONEOS_DEPLOYMENT_TARG...

image displayed in iphone emulator is not displayed in the iphone device

Hi, I downloaded few images from google and converted them to PNG using the windows paint (xp) application. Later i copied them to my mac machine and deployed the application with my new image. It is properly displayed in the simulator. Later I connected my iphone and deployed on the device. All images are displayed except this one. Wha...

Three20 - add items to launcherView after viewDidLoad

Hi I am getting a list of image URLs and corresponding names at run time in my app. I would like to add these images to a TTLauncherView object that I have. Cannot add these in loadView. I am making a call to the method for getting my data in a separate thread. Once the thread completes, I add the TTLauncherItem objects to an array and...

Custom Scrollbar for UITableView

the iTunes song list display is a TableView that has a dotted scrollbar on the right which allows me to jump to a relative position of the list (i.e. if I click the bar at 2/3 down I am scrolled to the 66% position of the list. I want to do the same in my UITableView, but am not sure whether this is standard functionality that I can use...

iPhone SDK - UITabBarConroller and custom design

Hi I am having a problem with my tab bars at the bottom of the screen. The designer has decided it should be one colour (not black) when inactive and another colour when active. I have worked out how to replace the main colour of the tabbar by subclassing UITabBarController and doing this:- - (void)viewDidLoad { [super viewDidLoad]...

MFMailcomposer localize To: Cc/Bcc: and Subject: fields

Hi , I there a way to localize To:, Cc/Bcc: and Subject: titles in MFMailcomposerController? Or customize them? TIA ...

How do you filter an NSMutable Array that contains core data?

I have an array that it is populated by core data as follows. NSMutableArray *mutableFetchResults = [CoreDataHelper getObjectsFromContext:@"Spot" :@"Name" :YES :managedObjectContext]; It looks like this in the console. (entity: Spot; id: 0x4b7e580 ; data: { CityToProvince = 0x4b7dbd0 ; Description = "Friend"; Email = "b...

How to show a video stored on server on iphone

Hi, I have a query regarding showing a video (which is stored on server) on iPhone. I want show a video in an iPhone Application. This is not live streaming. So how the video can be shown? I have read the Apple's documentation for HTTP streaming of video. Do I need to call a Web Service? Is there any tutorial for this? I have seen t...

Is it possible to accept a button tag to be in some range iphone sdk

Hi all, In my application I'm doing dynamic resizing of cells and label in it depending upon the text in it. I'm adding button to cells in uitableview. I'm taking the label instance and button instance in a new label and button variable respectively and setting their frames to arrange them properly after resizing. if(cel==nil) ...

Regarding Layer + UIButton Toouch

Hello, i have create Springbord screen like iphone / Ipad, which display grid view icons, Now When i long press on particular icon, All icons should be woggle like (iPhone functionality) and this part i did it, but whan i single tap is should be go to the next view. but problem is there Whenever i click on any icon of SpringBord, every ...