iphone

if-query: if (Nslog isEqualtoString @"...") - How can I make this??

Hello, I want my app to do something when the last NSLog has a certain string. I thought I could realize this with an if-query and isEqualtoString, but how can I make this? Sorry for my bad English ;) ...

UITabBarController.moreNavigationController disable items

Hi, I am using UITabBarController for my 7 viewcontorller. UITabBarController is showing by default more button. When I pressed more button it will show me table view which contains 3 more tabbar items in list. I would like to disable one items from tableview list. Could you please help me how can I disable only single item from tablevi...

How to dynamically instantiate a class in Objective-C

Can I know how to dynamically instantiate a class in Objective-C? ...

How to insert a row to a UITableView?

I want to use insertRowsAtIndexPaths method to insert a row to a UITableView, but I don't know how to make "indexPaths" property for this method. Please help me! ...

create one UIImage from two UIImageView.

Hi All I have two UIImageView on the UIView. Each UIImageView have one UIImage. Now i want create an one UIImage from two UIImageView. Please give the suggestion how can i do this. thanks deepika ...

How to use NSXMLParser to parse parent-child elements that have the same name

Hi everyone, Does anyone have some idea how to parse the following xml using event-driven model NSXMLParser class? <Node> <name> Main </name> <Node> <name> Child 1 </name> </Node> <Node> <name> Child 2 </name> </Node> </Node> I want to collect all three names from this xml file, is it possible, or I have to change ...

presentModalViewController problem

Hello, I have a problem, using presentModalViewController to display a UIView. Within the Application I have a NavigationController with a list of Items. Touching a Cell calls the first ViewController, responsible for only showing a background picture. Within the viewDidLoad method I create another ViewController which has a UiScrollVi...

Automating iPhone App Submission Process

Is there an API or any other method to automate the submission process. To elaborate: I have a number of apps which are similar in functionality and UI structure. I create the user interface by picking up variables from a plist. For instance I save the source of the API from where I pick up the data. Creating a new app involves just c...

How to get subdirectory from the FTP server?

I have implemented one application in which the user can connect with FTP server from the iphone using authentication, and get the listing of the directory. Now when user touch on main directory then I want subdirectory listing. How is it possible? ...

Finding curCapacity and maxCapacity Value, iPhone

Hello all, A method which can be used for finding the battery percentage of your device is found here: http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/comment-page-1/#comment-6085 I have tried it and it works great. If you have a closer look at the code there are two values curCapacity and maxCapacity. I ...

How can I make an existing AJAX form be iPhone compatible?

I was recently informed that my shopping cart application breaks when viewed in Mobile Safari (iPhone, iPod Touch). The "add to cart" forms use the 'progressive enhancement' approach to support AJAX updates using jQuery. Some quick testing showed that the functionality indeed works with JavaScript disabled. Everything I've read so far in...

how to reinit the viewcontroller every time.

I am changing the background color from single view controller to all other view controller. but it is working only when i start with that single controller . if i started with any other controller then i am not getting background change for that controller. I though that because if i start with some other controller , its init method...

iphone code - using NSArray

hi, how can i implement an NSArray in this method (instead of just defining each one of the objects). code: - (void) fadeOutShuffleAnimation { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration: 0.8]; [UIView setAnimationDelegate:self]; juw1.alpha = 0.0; juw2.alpha = 0.0; juw3.alpha = 0.0; ...

Failed to upload *.app

I created the App Id in the Apple development program and follow the instructions in apple document. My App Id is xxxxxxxxxx.com.companyname.appname. In my project's info.plist, i change the bundle identifier from com.yourcompany.${PRODUCT_NAME:rfc1034identifier} to com.companyname.appname. When i tried to run the application in my ipho...

UITableView gaps when using dynamic row height

I have a UITableView of height 400px which I want to fill with either 10 or 11 custom UITableViewCells depending on the data to be displayed. The problem is that depending on how I set the height of each row using my current method, there are gaps between cells or below the bottom cell. I assume this is due to rounding. This code puts s...

running application in background

Hi, I want to run my aplication in background on iphone.Please suggest me if any way is there. ...

Return Capacity Values, Not Percent (iPhone)

Using this method here how would I return the curCapacity and maxCapacity mAh values rather than a percent? http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/comment-page-1/#comment-6089 No matter what I try my curCapacity and maxCapacity values match my battery percentage! Edit // My 1st attempt #include ...

Unable to Implement Forward Action in AVAudioplayer

Hello, I am using AVAudioplayer to play some audio files. I have some controls like forward and rewind. Rewind is working properly but forward is not. - (void)rewind { AVAudioPlayer *player = _rewTimer.userInfo; player.currentTime-= SKIP_TIME; [_rewTimer invalidate]; _rewTimer=nil; [self updateCurrentTime]; } - (v...

iphone code - objectAtIndex question

hello, what doe's the upper objectAtIndex used for?, it seems to work with any number, why? AppRecord *appRecord = [self.entries objectAtIndex:1]; [[[[[self tabBarController] tabBar] items] objectAtIndex:1] setBadgeValue:appRecord.badgePrize]; ...

What's better way to build NSPredicate with to-many deep relationships?

Hello, I have three entities: EntityA, EntityB and EntityC connected with to-many relationships. See schema for details: For getting all instance of EntityA which depend from EntityB.name I use the predicate like this: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY EntityB.name like 'SomeName'"]; What should be ...