This has been driving me crazy and I hope someone can push me in the right direction. I have two UIViews that represent the left and right sides of a book. I have successfully used CATransform3DMakeRotation to rotate one UIView so that it flips up 90 degrees so that it just becomes a line. Now I want to start the other UIView in the "fli...
In Apple's document, Event Handling Guide for iOS, the section "Best Practices for Handling Multitouch Events":
If you handle events in a subclass of UIView, UIViewController, or (in rare cases) UIResponder,
You should implement all of the event-handling methods (even if it is a null implementation).
Do not call the superclass impl...
I'm making a simple RSS feed iPhone app, and I run into this:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if ([stories count] == 0) {
NSString * path = @"myfeedURL.rss";
[self parseXMLFileAtURL:path]; <-------Error Here
}
...
Hi all,
I've setup the view controller's view via IB. The view is set to landscape with width 480 and height 320. It loaded correctly in the simulator. However, when I checked self.frame.size by using NSLog, I found that the frame size changed itself without any rotation of device or any code. Here is what I get:
In viewDidLoad -->...
A tester sent this crash file:
Not sure what an EXC_CRASH is.
UPDATE:
I can randomly replicate it on device (never in simulator) when rotating my phone. Here is my rotation code:
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfac...
HI,
I am using Xcode3.2.3. i want to know that what is the build version of clang-analyzer that Xcode is using ???
the current clang-analyzer build version is 247.
...
Google maps API provides an option to show a bicycle layer. Is this also possible with MapKit?
...
Hi, I just recently saw these lines in my app console output and wondered how they showed up. I don't think that I enabled any accessibility features. Can someone explain this to me please?
******* Accessibility Status Changed: On
********** Loading AX for: com.yourcompany.appname ************
...
Hi all
i need to call touch event in iphone when i clicked on a button.
i have the following code which is not calling touch event
Please any one let me know how to resolve this.
The button code is as follows.
-(void)method
{
BottomView = [[UIView alloc] init];
btnRefresh =[UIButton buttonWithType:UIButtonTypeCustom];
[btnRef...
Hi
I am quite new all this iPhone stuff. I have no such clear IDea yet about provisioning profile etc.
I will be using my mac machine for two different developer IDs,one for my own and other for the startup where I am working in. Now,how can I use xCode to submit my apps in two different IDs?
thanks
...
Let me preface this by saying that I'm a very raw iPhone developer.
I'm making a static library that can be used in iPhone apps. It needs to show a view but static libraries, as I understand it, cannot include nibs (or xibs, in my case). So, I have created a separate bundle containing the xib I need. I then include the bundle along with...
I am writing a library to be used by developers for the iPhone (similar to the way that OpenFeint is implemented) and I am trying to create a ViewController with an associated XIB so that I can instantiate it in my code with
SplashScreenViewController *splashScreenViewController = [[SplashScreenViewController alloc] init];
UIWindow *top...
Im trying to draw a line .
I wrote a code like below.
UIColor *currentColor = [UIColor blackColor];
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetStrokeColorWithColor(context, currentColor.CGColor);
CGContextMoveToPoint(context, startingPoint.x, startingPoint.y);
CGContextAdd...
CGContextRef ctx;
NSGraphicsContext *nsGraphicsContext;
nsGraphicsContext = [NSGraphicsContext
graphicsContextWithGraphicsPort:ctx flipped:NO];
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
There is no NSGraphicsContext for iphone.
Thus CGContextRef context= UIGraphicsGetCurrentCo...
Hi, I have a UIView that I use as a container for four separate subviews. At any one time, only one of the subviews is visible and the rest are hidden. Right now, when switching between the views, all I am working with is setting or inserting the hidden property.
I'd like to have some sort of an animated transition to give the app a ...
HI All,
I need to change the iphone ringtone and wallpaper programmatic by my application .Is there any API in iphone os 4 or in lower version by whcich we can change the iphone ringtone by our code.
Thanks
...
http://imgur.com/5c3tQ.png
Anyone know why this happens? All the code is perfectly done. It is just that I moved from Xcode 3.2.2 to 3.2.3 (I modified the project settings as well).
What is wrong?
...
Hello,
This is probably simple but I do not seem to get it to work. I have a view and inside it I have a scroll view and inside it I have a view with some labels and a button. the height of the text inside the labels changes according to some condition so I need to scroll down to see it. But whenever I try to scroll down it bounce back ...
Hi All,
Guys, i am a newbie in iPhone but not to Programming, my doubts are,
Is it possible to add more than one UITableView in the same screen? ,if so please provide me with sample code / resource where i can find..
The Second UITableView has to be changed accordingly based on the selection in the First UITableView.
Thanks in Adva...
I want to customize the reflection from the FlowCover (Cover Flow remake) sample code. Now, the reflection (a texture) is only transparent but I want it to have a gradient so that the texture fades to be completely transparent.
How would you achieve this effect with OpenGL? This is the code that handles the textures.
glPushMatrix();
gl...