I'm working on a simple iPhone App and in some cases it has a very weird behavior which I just cannot understand...
The App has an UIImageView and a few controls like a switch, label, progresbar etc. These control are initially in certain states, like the switch is off, the label contains some initial text, the progresbar is hidden. Th...
hi,
I am new to Iphone SDK.i am using following code.but the animation happens
from Right to Left when i click this button.i want to do fro botton to Up
- (IBAction)clickedsButton:(id)sender
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDuration:0.75];
[self.navigati...
I'm a newbie to iPhone development and just started on developing an application that contains a UITableView where each cell consisting of youtube video thumbnails in the form of webviews. For embedding YouTube Player on iPhone, I have used the follwing piece of code.
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame {
NSString...
I'm currently trying to decide wether to accept a client's proposal or not. Basically, I'm asked to create a MapView that displays markers at several locations on a map, with the additional requirement that the client's own map tiles are used instead of Google Maps'.
I do not know yet how the client stores their own map tiles, but I was...
how to find colour depth and locale for iphone through code?
...
Hello, In my iPhone application I have multiple class files, I have my main application's class files, then I have my UIView class files. I have a simple -(void) method declared in my UIView class files, how can I access it from my main applications class files?
A bit more detail: In my application a video is played, when this video fin...
I'm using a UIWebView to display a captcha. If the user enters the captcha correctly, then the server returns data using JSON serialization. I don't want the view to display this, instead I want to intercept the loads of the UIWebView, and if it returns JSON serialized data, I want to store that data and remove the UIWebView.
I was thin...
Are there greater chances of my app getting rejected by Apple if I use a custom category to extend the functionality of an UIKit interface element, let's say UIButton?
Clarification: I'm thinking about implementing a toggle UIButton, that will alternate between pressed/released states on each tap.
...
Hi
Im building an app that will use a Core Data model. I pretty new at Objective C and my usual design patterns does not really apply on Core Data and Objective C, at least I can't seem to find examples that confirms they will.
I have been through the Apple Developer examples and different sources on the intertubes.
It seems that to l...
I have implemented a listing of videos in a UITableView. When I touch on a particular video then the video plays in an MPMovieplayer. Now, I want to make it so that if I touch on a next button, then the next video in the UITableView will play. How can I implement this?
...
Does anyone knows how can i detect from an app the DNS of the iPhone?
UPDATE: If there're different ways of obtaining the DNS server and DNS host name, any solution is acceptable.
...
What happens when a user installs an ad hoc distribution of an existing app? And what happens if this app (or a newer one) hits the App Store officially?
To sum it up:
A user already has a v1.0 and receives a v2.0 ad hoc
A user has the ad hoc v2.0 and the official public release of v2.0 hits the store
A user has the ad hoc v2.0 and an...
Hi,
I keep getting the following message from my iPhone 3.0 when trying to convert a large NSData object into base64Encoding for http transmission :
void SendDelegateMessage(NSInvocation*): delegate failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
If you were not using the touch screen for this entire...
Hi,
I need to rotate in image multiple times in 90 degrees I am using following code,
CGAffineTransform transform = CGAffineTransformMakeRotation(PI/2);
shape.transform = transform;
here shape being my UIImageview.
The problem is every time i click on rotate button it rotates it from its original position, which is not what I want...
I am bothered by the following code snippet in my program.
If I write
mo=[[myObj alloc] init];
it fails, but if I write
mo=[myObj alloc];
mo=[mo init];
it works. These two methods are supposed to be equivalent but somehow I am messing up. Any light?
Clarifications:
myObj is the name of a class
It fails by trying to allocate for...
I wanted an entire page of text(multiple lines) in my settings similar to the one on iphone:
settings->general settings->About->Legal
I have not been able to do so. I tried entering title in PSGroupSpecifier, it gives me multiple lines but with a gray background. i wanted a white background.
Any help would be highly appreciated.
Thank...
Does iTunes Connect has an API? How do some applications download financial and sale reports to computer? Are there some C/Objective-C API wrappers?
Thanks in advance.
...
Hi,
Can someone please tell me how to switch off sound in an iPhone Application. Thanks :)
...
When setting up a UITableView's data source, I'd be interested to get views on which is better, solution A:
NSString *labelText;
switch (indexPath.row) {
case 0:
labelText = @"Setup New Match";
break;
case 1:
labelText = @"Teams";
break;
case 2:
labelText = @"Players";
break;
case 3:
labelText = @"Archive";
break;
}...
I'm having a bit of a problem figuring out how to get the X/Y coordinates of where the finger is touching in a webapp on iPhone Safari.
I've got a function subscribed to the 'touchstart', 'touchmove', and 'touchend' events, and I have tried pageX/pageY on the event but can't seem to get anything other than 'undefined' or 0.
I'm also th...