Hello, I am trying to get the email address from a user. He logs in, I ask permission to access email and he chooses ok. Then I use the graph API from facebook to access the email address.
- (void) fbDidLogin
{
btnLogin.isLoggedIn = TRUE;
[btnLogin updateImage];
NSString *theURL =
[ [NSString stringWithFormat:
@"https://...
Hello ,
I'm using this method to try to move my view up but without success, this is the code in my MainViewController implementation file :
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
CGRect rect = self.view.frame;
if (movedUp)
{
NSLog(@"should move Up");
rect.origin.y -= 50;
rect.size.he...
I have a product/shopping list (consisting of product objects with a name, product_id etc) on the iPhone side. I wish to send this list to the server where I will compare the list on the server with the one from the iphone (to merge the changes made and send the merged list back to the iphone).
How would I send my array over a HTTP POST...
Hi,
I have an a vertical scroll-view in which i have 3-4 child scrollviews that slide horizontally, i want to control the vertical scroll-view (Parent) with a slider.
Anyone have any idea for this?
Thanks
Inam
...
I am currently researching ways of adding several UIImageView's to a single UIScrollView. The UIScroll view will be 1.5 times the size of any one of the UIImageView's. I want to create a scrolling effect for browsing through some small images in an iPad application. Does anyone know how to achieve this?
...
As far as O know, web pages play mp3 sounds by embedding invisible Flash players. Since Flash is not available on mobile webkit (iphone/ipad), how is it possible to play mp3 on this platform?
...
I have an UIView where I was drawing some stuff inside -drawRect:. Now I need a CGImageRef from this graphics context or bitmap of the UIView. Is there an easy way to get that?
...
I am drawing something into -drawRect of an UIView, and in this case I really want a certain amount of pixels. With the retina display, my view has a scaleFactor of 2.0 and when I draw something that is supposed to be 10 pixels heigh, it's actually 20 heigh. Is it okay to set the scale factor back to 1.0 to get a 1:1 mapping between poin...
Hi all,
I am using webkit to display youtube videos on iOS4. Upon click on the video it should automatically launch the player and display the video, but what's happening is video is rendered in the player but under the webview. What I want to do is make webview's alpha 0 so I'm using delegate
webView:shouldStartLoadWithRequest:...
How to make UIlabel roundRect shape ?
By changing background color of UILabel it looks like a rectangle in shape I want to make it look like a roundrect in shape.
Thanks.
...
I get working skpsmtpmessage(http://code.google.com/p/skpsmtpmessage/).
So I can send mail in foreground.
Now I wish to send send a mail by skpsmtpmessage in background when didUpdateLocation occurs.
It works in background, I get latitude and longitude, but when send mail starts It stops at first step:
"C: Attempting to connect to serv...
Hi all,
I'm getting a memory warning: "Incorrect decrement of the reference count of an object that is not owned at this point by the caller" for challengeCell at the marked line.
myIdentifier = @"ChallengTblVwCell";
ChallengeTableViewCell *challengeCell = (ChallengeTableViewCell *)[tableView dequeueReusableCellWithIdentifier:myIde...
Hi
I want to know that how can i get the shortest distance from source A to Destination B using the MapKit in iphone.
Please help me if any one has any idea, sample code, article or any other material regarding my question.
Regards,
Iphone Developer
...
Hello all
Right I know how to do the pictue book effect but I struggling to remove the view
So page 1, I add the second page view via addSubview (via a swipe). I also increment a counter so I know what page I am on.
So how do I return to page 1? See I thought it would be self.view removeFromSuperview but that crashes when you try to...
I was going through the iPhone samples available here.
There is one sample code named Color Slider Puzzle, but the link to the download is not working.
Does anyone have a working download link to this sample code?
...
Hi there
I have my view set up in viewDidLoad. All the different frames and such of the subviews have been defined relative to self.view. Therefore it doesn't matter what size self.view is the subviews will always shrink or expand to fit (as it were).
So when I rotate my device I want the view to rotate (easy enough with shouldAutoRota...
I'm getting this warning.
'-respondsToSelector:' not found in protocol(s)
It occurs on the line marked by "HERE" below.
- (NSString *)tableView:(UITableView *)tableView
titleForFooterInSection:(NSInteger)section {
id<SetsSectionController> sectionController =
[sectionControllers objectAtIndex:section];
if ([sec...
i have an array of these words between spaces
"gbpjpy buy 132.00/15 131.95 update close at 132.40 close at 132.40 120+ gbpjpy buy 132.00/15 131.50 45 new 90 120+ gpbusd buy update HIT 40 PIPS HIT 110 PIPS gpbusd buy BREAK EVEN update HIT 100+ gpbusd buy 1.5500/25 1.5455 new 40 100+ gpbusd buy update CLOSE 0 TO 10 PIPS N ...
Hello,
I'm trying to compare the timeInterval to an integer value, so I try and convert the timeInterval to an integer and compare. But I'm getting an error 'Cannot convert to a pointer type':
NSTimeInterval timeInterval = [startTime timeIntervalSinceNow];
int intSecondsElapsed = [timeInterval intValue]; // Error here !!!!
if ([counte...
Hi,
I have to use a calendar in my iphone application. I tried hard but could not find any inbuilt API in iphone sdk for this purpose. Now i am going to create calendar by myself and need some guidance for it.
I have created 5 rows of 7 buttons(i.e, 35 buttons in all) and will be using it as the date and then later i will add other gr...