Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KittenYang committed Jan 31, 2015
1 parent 7da3b8a commit 1c4bfed
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
Binary file not shown.
1 change: 0 additions & 1 deletion KittenYang/KittenYang/NearbyViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ @implementation NearbyViewController{
- (void)_initView{

headerLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, -80, ScreenWidth, 80)];
CGPoint point = headerLabel.layer.anchorPoint;
headerLabel.backgroundColor = [UIColor clearColor];
headerLabel.text = @"继续下拉关闭";
headerLabel.font = [UIFont systemFontOfSize:16.0f];
Expand Down
6 changes: 3 additions & 3 deletions KittenYang/KittenYang/SendViewController.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6254" systemVersion="14C94b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SendViewController">
Expand Down Expand Up @@ -180,7 +180,7 @@
<rect key="frame" x="0.0" y="312" width="320" height="40"/>
</variation>
</view>
<view hidden="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lGB-aK-AXv">
<view hidden="YES" contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lGB-aK-AXv">
<rect key="frame" x="0.0" y="199" width="259" height="40"/>
<subviews>
<imageView contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="compose_placebutton_background.png" translatesAutoresizingMaskIntoConstraints="NO" id="apB-fe-zTM">
Expand Down
1 change: 0 additions & 1 deletion KittenYang/KittenYang/WeiboCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ - (void)_initView{
// UIView *selectedBackgroundView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 0)];
// selectedBackgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"statusdetail_cell_sepatator.png"]];
// self.selectedBackgroundView = selectedBackgroundView;


}

Expand Down
3 changes: 2 additions & 1 deletion KittenYang/KittenYang/libWeiboSDK/HomeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ - (void)pullDownData{
* since_id :若指定此参数,则返回ID比since_id大的微博(即比since_id时间晚的微博),默认为0.
* count: 单页返回的记录条数,最大不超过100, 默认为20;
*/

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"25",@"count",self.topWeiboId,@"since_id",nil];
[WBHttpRequest requestWithAccessToken:[self getToken] url:WB_home httpMethod:@"GET" params:params delegate:self withTag:@"pullDown"];
}
Expand Down Expand Up @@ -320,7 +321,7 @@ - (void)request:(WBHttpRequest *)request didFinishLoadingWithDataResult:(NSData
NSDictionary *weiboDIC = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:&error];
NSDictionary *WeiboInfo = [weiboDIC objectForKey:@"statuses"];

NSMutableArray *weibos = [ NSMutableArray arrayWithCapacity:WeiboInfo.count];
NSMutableArray *weibos = [NSMutableArray arrayWithCapacity:WeiboInfo.count];
for (NSDictionary *statuesDic in WeiboInfo) {
WeiboModel *weibo = [[WeiboModel alloc] initWithDataDic:statuesDic];
[weibos addObject:weibo];
Expand Down
1 change: 0 additions & 1 deletion KittenYang/UserModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ - (void)_initWithDic:(NSDictionary *)dataDic{
self.statuses_count = [dataDic objectForKey:@"statuses_count"];
self.favourites_count = [dataDic objectForKey:@"favourites_count"];
self.verified = [dataDic objectForKey:@"verified"];

}

- (void)setAttributes:(NSDictionary *)dataDic{
Expand Down

0 comments on commit 1c4bfed

Please sign in to comment.