Tuesday, October 25, 2011
Add UIProgressView to UITableViewCell
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"downloadcell"];
if(cell==nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:@"downloadcell"] autorelease];
UIProgressView* downPreView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
downPreView.tag = 1234;
downPreView.frame = CGRectMake(400,70, 200,10);
[cell.contentView addSubview:downPreView];
}
//update the progress
UIProgressView* downPreView = (UIProgressView*)[cell viewWithTag:123]; downPreView.progress = downloadPre;
Monday, October 17, 2011
PhoneGap and ASIHTTPRequest conflicting problem
Re: Conflict with ASIHTTPRequest (Reachability Issue)
by ryanagler » Tue Aug 02, 2011 10:12 pm
I dont know the reprecussions of this, but it
appears I got it to work by replacing the Reachability.h that comes with
ASIHTTPRequest with Apple's version 2.2 here:http://developer.apple.com/library/ios/ ... lementID_5
get iPhone udid by phoneGap api
var string = device.uuid;
PhoneGap api docs are here if you need any more info... http://docs.phonegap.com/phonegap_device_device.md.html#device.uuid |
How to get the Blackberry address book image photo
Vector contactList = Phone.getContactsByPhoneNumber(inputNumber); Contact contact = (Contact) contactList.elementAt(0); byteStream = contact.getBinary(Contact.PHOTO, Contact.ATTR_NONE); EncodedImage contactPic = EncodedImage.createEncodedImage(byteStream, 0, byteStream.length); String picType = String.valueOf( contactPic.getImageType() );
Subscribe to:
Posts (Atom)