iphone

iphone css: media type not working!

Hi I am working on a site specific to the iphone community. Having read few articles on the net, regarding css for the iphone safari browser I learnt to use the following code: <!--[if !IE]>--> <link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iPhone.css"> <!--<![endif]--> However when I us...

Implementing Transient Properties

Hello all, I am adding a transient property to my Core Data-based app, and I think I am missing something. In the Data Model Editor, I added a optional, transient, BOOL property called isUnderwater. In my model's header file, I added: @property (nonatomic) BOOL isUnderwater;, then I implemented these methods in the implementation file...

Migrating a tab bar-based iPhone project to iPad

Like many other developers out there, I've created iPhone projects that use a UITabBarController as the root controller, with the tab views using UINavigationControllers to drill down from lists to detail views. And like many other developers out there, I need to migrate these apps to the iPad so they take advantage of the bigger screen ...

Static libraries or anything else

hello, I am trying to hide my source codes in iphone projects. however I didnt understand the static library concept. Most of the tutorials about static library points out that including the whole .xcodeproj . can anybody point out a direction to me please. thanks ...

ipad iphone repositioning uinavigation bar, moving it down to have a logo

Does anyone know if the uinvagitionbar of a uinavigationcontroller can be moved down? I'd like to move it around 200 pixels down to have a logo on top. From my research, I understand that the navigationbar should not be subclassed and there are only two properties that should be changed, it's color and it's visibility. So is this impossi...

how to add multiple navigation controllers

hi i am new to iphone. what i did is creating classes named classone.h,classone.m, classoneviewcontroller.h,classoneviewcontroller.m and creating navigatonviewcontroller in classoneAppDelgate.h , .m . now what i need is along with these classes i have to crete new class named classtwo with viewcontroller, and i have to call new to class...

MPMoviePlayerViewController customization

Hi, I'm using MPMoviePlayerViewController - with the player controls set to: MPMovieControlStyleFullscreen I'm having a problem with some of buttons that are in MPMovieControlStyleFullscreen: forward, reverse, and fullscreen (the one with the arrows pointing at eachother). I would like to either remove the forward, reverse, and fullsc...

Building to Replace old version of app with new app version causes app to crash!! reason??

Hi all, I have a game project which runs very fine in device in both debug and release mode. I have had two versions of it. Old version and new version with more (later i have added) features, and the bundle id, version for both are same. When I build older version, with no previously installed "myGame" app. It builds fine and runs fine...

weird thing about CCMenuItem touch detect

after I create a button, the button rect which can touch is not the same with the ccsprite rect. I can just touch some part of the button. when I click the other part, the isEnabled_ is NO, this is weird, because I really click the button. and I also check the ccsprite rect, it's right. ...

Access Tableview Cell in some other methods

How to access a table view cell in some other user defined methods other than those predefined methods for tableview??? Plz help... Thanx in advance... ...

Add/remove data to TableView datasource programmatically

HI @ll! I want to add and remove some items to my datasource for my tableview programmatically. First of all: What do I want to achieve? I habe a UIView with a TTTableView control (the Tableview from the Three20 project, but derived from the common UITableView control). This TableView is working well and has a TTSegmentedDataSource obj...

multiple UITextFields on one view

I've got a little problem with uitextfield. I use two of them in a view and when I write something to the second field the first string gets changed too. Here is my code -(BOOL)textFieldShouldReturn:(UITextField *)textField{ textString = textField.text; NSLog(@"the string1 %@",textString); [textField resignFirstResponder]; textString...

sqlite3 on iPhone - memory gobbled up? while parsing large amounts of xml data

Hi guys, imagine an xml file with 5000 sets of data. While parsing , i NSLog an element and it returned me 5000 sets of data, but i have a loop that is inserting the data into the sqlite3 database. It seems to stopped inserting around after 400+. I looked around and found out that it gobbles up memory?in the leaks instrument, the respons...

How can I map a list of ranges to a single value?

I've only recently jumped into the world of iphone development and objective-c, so I'm still a bit lost as to how I might implement something like this. I have a float, and I have a list of ranges that float can fall within and the corresponding value I should return, eg: 10.0 - 14.5 : 1.0 14.5 - 17.0 : 2.0 17.0 - 23.0 : 2.5 23.0 - 32....

[iPhone] image width and height was exchanged after load to CALayer

I want to put an image into a CALayer's sublayer, like this: CALayer *parent = [CALayer layer]; CALayer *child = [CALayer layer]; [parent addSublayer:child]; UIImage *image = [UIImage imageWithContentsOfFile:imagePaht]; NSLog(@"%f-%f", image.size.width, image.size.height); child.contents = [image CGImage]; I have five images in my ...

creating a xib of small size

Hi, I have some view controllers in my project and all have a common layout in upper half of page. I dont want to do same designing and coding again and again for all pages. I want to create a small view which will fit at upper half of screen and just use it on all the view controlller. I m planning to do it using xib. Can someone sug...

How to convert images to video on iPhone?

I'm looking for a way to convert a sequence of images to a video. And I also want to add sounds to specific time within the video. How can I do that on iPhone? Is there a library that helps? ...

AdWhirl and Admob

Hello guys! I have downloaded the latest AdWhirl and AdMob SDK. Read and done with the instructions in the AdWhirlSDKInstructionsforiPhone.pdf I have the following errors: 1. AddRunningClient starting device on non-zero client count 2. Unable to fill ad request. This is a common situation. 3. <AdMob> Must implement required method -cu...

iphone uibutton with square corners

How can I create UIButton in iphone app programatically to have square corners. I don't want to have rounded corners. ...

NSURLConnection connectionDidFinishLoading called before all file is downloaded

I am using NSURLConnection to download a zipped file from a web service. In the didReceiveData I append the data to a file and using a good internet connection all appears to work correctly. The file is transparently unzipped as it is downloaded. If, however, I have a poor internet connection the connectionDidFinishLoading appears to be...