Hi all,
I'd like to implement bit.ly URL shortening service in my application and from biy.ly's API docs I read It uses JSON to short a link...
Unfortunately, I never used JSON and I don't know where to start.
Can anyone explain me how to implement bit.ly URL shortening service in my application?
Thanks,
Matteo
...
Hi,
We upgraded to Xcode 3.2.4 with iOS 4.1 SDK, now our tests are failing.
First because of this An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance 0x201aa7200 then we used the patch suggested by apple forums (http://gist.github.com/...
I have a file1.h file1.m file1.xib the xib has a blank screen with a label on it. I have another file that does some arbitrary calculation and will update the label as the calculation loops. Where should I declare the UILabel * value in file1.h or the file that does the calculations?
Thank you drive around.
...
I have a subclass of UIScrollView that implements this method:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"touches: %d", [[event allTouches] count]);
[self.nextResponder touchesBegan:touches withEvent:event];
}
This gets called when I first touch the scroll view. However, if I begin dragging th...
I have a TableView in which I am adding custom UILabels to the UITableViewCells. The tableView loads fine, but when it tries to dequeue a cell after scrolling the app crashes when it tries to set the text of the UILables. Code follows:
#define STYLE_NUMBER_TAG 0
#define COLORWAY_TAG 1
#define SIZE_TAG 2
#define QUANTITY_TAG 3
- (UITabl...
My scroll view scrolls down extra... what could be the possible reason?
It works fine in first go but when I edit my textfield in the scrollview, it starts scrolling extra down. Any clue?
...
I am trying to understand a little more about memory management. Knowing that I need to release anything that I have init or alloc'ed I am confused about the following:
- (NSMutableArray *)getData {
NSMutableArray *data = [[NSMutableArray alloc] init];
NSString *first = @"First object";
[data addObject:first];
NSString ...
Hello,
Right now, I am trying to make my sprite move left when the device is tilting left and move right when the device is tilted right. There is no Y axis movement at all.(Which is good) The code I am using seems to be working just fine, except that when tilted left, the sprite only moves about a 3rd of the way across the screen ins...
I have a parent UIView with 2 subviews: a UIButton and a UIScrollView with a UITapGestureRecognizer implemented. The UITapGestureRecognizer is used to zoom in and out the scrollview and the button is used to show/hide some text.
My problem is that once I've used the UIButton, the UITapGestureRecognizer is no longer functioning.
Also, t...
For instance, if someone views a URL for an app on the iPhone, we would like the URL to open the App Store and display the entry related to that app. The idea is to allow downloading of an app with two clicks (click on link, then click on "Install" button) on the iPhone.
How is this possible?
[Edit] To clarify, from within the iPhone ...
I am completely new to objective c and iphone development, so please be gentle (just started looking at the code for the first time tonight).
According to this site:
http://iphonedevelopertips.com/cocoa/date-formatter-examples.html
there is a class that handles formatting, which takes in a set of constants/enums (e.g. NSDateFormatterSh...
Hi,
I am observing a weird behavior in my app:
My app contains multiple textfields in a scrollview. Now when I click on one textfield to modify it, my "textFieldDidBeginEditing" is called and if I click on Return key of my keyboard "textFieldDidEndEditing" is called and during these operations I am getting my full view in perfect frame o...
Anybody can tell me how to make "swipe to mark as read" menu like Reeder (img below)?
...
I am trying to get pinch/zoom work but to no luck... please check code attached any help is appreciated.
#import "SlideShowViewController.h"
#import "SomAppDelegate.h"
#import "MainCategory.h"
#import <sqlite3.h>
#import "UIImage+Resizing.h"
NSInteger Val;
NSInteger AIX;
NSInteger AIY;
NSInteger Height;
NSInteger Pre;
NSInteger Valtab;
...
I'm using AVCaptureSession to capture video from my iPhone 3G and I need to capture the image and change it before displaying on my AVCaptureVideoPreviewLayer. In my current implementation, I am simply implementing the captureOutput: method and displaying the UIImage in a UIImageView, but that does not work for some reason.
Any ideas? S...
Currently I am using the following code to parse the JSON link sent. This is how I also send a GET call to the Google Reader API for an upcoming iPhone application of mine.
- (NSArray *)subscriptionList
{
if(!cookies && [cookies count] == 0) {
[self requestSession];
}
NSString * url = @"http://www.google.com/reader/api/0/subscripti...
What are all the valid animationID strings for the beginAnimations:: class method on UIView?
...
I would like to run a calculation to see if the bottom 20px of a UIImage are generally dark or light. I am displaying a small amount of text on top of this image (one line at the bottom, ie. the bottom 20px), and would like to determine dynamically whether I should make this text black or white.
I am guessing I should be able analyze ea...
I've got a detail view with various labels and such providing information about a place (address, phone, etc.). The information provided is taller than an iPhone screen so they're all in a UIScrollView (itself inside a UIView) that allows you to swipe up and down to see everything.
I also have an MKMapView inside the scrollview. When it...
I am not entirely sure how to properly phrase this question so I'll explain what happens. I have a cocos2d game, and after I exit the game and start it again, it starts at the exact same point. Its as if it is "saving."
Is there any way to prevent this?
Thanks
...