iphone

UItableView Problem in deleting items from database

Hi All, I am using in UitableView database.My table view works successfully (add single item,add multiple item,delete all) only problem is there when i want to delete single item for this i using Uitableview edit option. so how i add database method for deleting single item from database and also from table view. Please help me. ...

streaming speed for video content on iphone

My application was rejected from Apple today.Apple says that the video stream should be not more than at 64kbps. what should i will have to do get my application approve on App Store?? Should i have to make changes on video content that i am streaming from my iPhone or should i have to change in code? Please suggest. Thanks, Jim. ...

Working smaple mpoauthconnection for iphone

Has any one got a working code sample for mpoauthconnection. I had checkout source from code.google.com/p/mpoauthconnectio. But selecting MPAouthTestApp gives the following error. target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform Please help me to solv...

how to use stream.publish method in iphone?

I am implementing FBConnect in my iPhone App.I want to post a predifined message to all facebook friends at once of the logged in user. How to do it? Please paste the total code. Any urgent help would do. Thanks in advance. ...

How to handle UIPickerView with two data sources?

Hi, is it possible to handle two data sources in the UIPickerView? I have here a segmented control that would control the display of the picker view. So, for example, when first segment is clicked, the picker will display person's name. Then, when second segment is clicked, picker will display place's name. Thanks ...

Performing selectors on main thread with NSInvocation

I want to perform animation on main thread (cause UIKit objects are not thread-safe), but prepare it in some separate thread. I have (baAnimation - is CABasicAnimation allocated & inited before): SEL animationSelector = @selector(addAnimation:forKey:); NSString *keyString = @"someViewAnimation"; NSInvocation *inv = [NSInvocation invoca...

Incompatible type in assignment

Getting error: Incompatible type in assignment at fValue = ..., see the code static float t = 0; float d = .5; static float fValue = 0; fValue = [self easeOutBounce:t andB:0 andC:30 andD:d]; here is the method -(float) easeOutBounce:(float)t andB:(float)b andC:(float)c andD:(float)d { if ((t/d) < (1/2...

Subview position issue after UIOrientation (rotation) change

I have a viewController and have added a subview in it programatically. secondView.autoresizingMask = UIViewAutoresizingFlexibleWidth; [self.view addSubview:secondView]; I guess when the device rotates, my mainViewController knows that orientation changed, but the subview (secondView) inside the mainViewController does ...

Is there a random sampling function for iphone development that can simulate a coin toss?

Is there a random sampling function for the iphone? For example, if you want to flip a coin that returns heads 25% of the times it's flipped, and you want to flip it and see if you get heads this time? I googled for random sampling probability for iphone and couldn't find anything. ...

question related to NSUserDefault class

Hi, I have problem in setting the object of NSUserDefault Class. in a.m file i 'm setting the value of subject_textfield. in b.m file i'm getting this value this two operations are done by NSUserDefault class now i'm setting that value for object of NSUSerDefault. NSUserDefaults* defs7 = [NSUserDefaults standardUserDefaults]; [defs7 se...

UIIMageView, warning: check_safe_call: could not restore current frame

Hi, I am changing the image in UIImageView based on accelerometer input. The images are stored in an array. The application runs fine for a while and then crashes. warning: check_safe_call: could not restore current frame I am not using "UIImage ImageNamed" method when populating the array. The total size of all images is around...

iphone sdk: Table view not working in the first 5 tabs but in the more view

Hi, I only started with sdk but this problem is bugging me now for a view days: I created a UITableView and added it to my Tabs. When this TableView is in the first 4 Tabs and u go look at it, it only shows the items on the table but when clicking on them nothing happens (it doesn't go to the next view). BUT when i put this same tab be...

How to filter touch events for a UIScrollView?

I have a view that displays a PDF. It should be zoomable, so I also created a UIScrollView, and in its delegate I implemented viewForZoomingInScrollView to return the PDF view. So far so good. However, when the user reaches the edge of a zoomed PDF page, I'd like to flip to the next page. Sounds easy, yet I can't seem to figure out how ...

How to draw image after interfaceOrientation has been called?

example i draw UIImageView inside UIView with a.png then i rotate my device is it possible to draw another picture to replace my current picture(a.png) ? ...

Interface Builder - Custom Button with Title text

When I set up a custom button in Interface Builder it hides the Title text. Do you have to create the text for the button too or is it possible to change the Z order so that the Title appears on top? ...

Best online photoeditor & Best iphone wireframe Creator

Is there any Best online photo editor & Best iphone wireframe Creator? iphone wireframe creator that is useful to draw preview of any iphone application. ...

to print local xml file through NSData?

hi, i want to take some xml data from local path,and to parse,but when i use following code NSLog returns(content) different texts which is differed from xml file, how can i get exact xml data to check ,it consists correct xml data or not? any help please? when i parse , it returns nothing..i have saved the file as .xml and copied to loc...

NSMutableDictionary can't have "time" to read objects (NSMutableString s)

Hi, I'am setting the text of labels with the content of NSMutableString_s which are objects of a NSMutableDictionray ... the problem that all things work fine when i load the page for two times (so i push ,after i pop...) and with the third push the program can't read the content of one of the NSMutableString_s of the NSMutableDictionary...

How to change the label of "Search" key on iPhone's keyboard to customized text?

I am using a UISearchBar and i want to change the "Search" key's label to customized text such as "ABC".how to do? thanks in advance! ...

Proximity Monitoring on the iPhone without blacking out the screen?

Hello all! I'm able to detect proximity on the iPhone SDK, but the screen blacks out whenever the proximity state is triggered. is there a way I can prevent the proximity sensor from blacking out the screen, but still monitor a proximity sensor's state? Thanks! ...